Tag Archives: shell scripting

ls – list command

ls – list command ================= – ls means list directory content – Prototype : ls [OPTION] … [FILE] … – Exit status It returns 0 ,on success Returns 1 in case of minor problems (eg. cannot access subdirectory) returns 2 … Continue reading

Posted in Shell Scripts | Tagged , , , , , , , , , , , | Leave a comment

How to change default prompt in BASH shell

To change default prompt :- ======================== – We can change default prompt by assigning the character to it. – Each character have a specific meaning. BASH Shell Prompt Characters :- Character Description \a Bell Character \d Date in format “Day … Continue reading

Posted in Shell Scripts | Tagged , , , , , , , , | Leave a comment

Command line Prompt – PS1, PS2

Command line Prompt =================== Environmental variables that controls Command line Prompt PS1 : Controls the format of default command line prompt. PS2 : Controls the format of second-tier command line prompt. PS3 : Controls the format of tertiary command line … Continue reading

Posted in Shell Scripts | Tagged , , , , , , , , | Leave a comment

scripting problem

I am trying to make a Makefile which can accept an a c file name as an argument to be used as a variable in my script so that i can use it with any of my c files for … Continue reading

Posted in Shell Scripts | Tagged , | 2 Comments