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


Please Help Members By Posting Answers For Below Questions

How many fields are present in a crontab file and what does each field specify?

590


Why is used in shell scripting?

562


What is a batch file used for?

564


Given a file find the count of lines containing the word "abc".

963


What is the command to find out today's date?

591






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.

803


How to check if a directory exists?

560


Explore about environment variables?

599


How to find all the files modified in less than 3 days and save the record in a text file?

615


I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?

1686


What is shell environment?

548


What are different types of shell?

496


What is scripting autism?

704


What is shell and shell script?

558


What does sh mean?

622