Answer Posted / pushkar
if [ -d $var ] ;then
rm -rf $var
fi
mkdir $var
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Explain about echo command?
Which shell is the best?
What is the difference between bash and shell?
How do you debug a script?
How can you get the value of pi till a 100 decimal places?
Why are there shells on the beach?
Explain about "s" permission bit in a file?
Differentiate between ‘ and ” quotes.
Is shell scripting difficult?
What makes c shell a more preferable option than the bourne shell?
How to check if the previous command was run successfully?
What is a program shell?
write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.
What is shell chemistry?
How will you emulate wc –l using awk?