write a scwipt that
a) takes exactly one argument, a directory name.
b) if the number of argument is more or less than one,print
a usage message
c) if the argument is not adirectory, print another message
d) for the given directory, print the five biggest files
and the five files that were most recently modified.
e) save the output to a file called q2output.
Answer Posted / syalshidi
practcal withe vmware
unix
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What are types of shells?
How to check if the previous command was run successfully?
Explain about shebang?
What is shell chemistry?
What are the different variables present in linux shell?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
What are the default permissions of a file when it is created?
How do I run a script on mac?
What is sh in shell script?
What is the meaning of $1 in shell script?
Write down the syntax of "for " loop
What are the two files of crontab command?
What are different types of shell?
What is bash eval?
What is the difference between grep and egrep?