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
How many fields are present in a crontab file and what does each field specify?
Why is used in shell scripting?
What is a batch file used for?
Given a file find the count of lines containing the word "abc".
What is the command to find out today's date?
Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.
How to check if a directory exists?
Explore about environment variables?
How to find all the files modified in less than 3 days and save the record in a text file?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
What is shell environment?
What are different types of shell?
What is scripting autism?
What is shell and shell script?
What does sh mean?