Question: II) Writing Shell Scripts (25 Points) Take two command line parameters, the first of which is the name of a directory, and the second is

 II) Writing Shell Scripts (25 Points) Take two command line parameters,

II) Writing Shell Scripts (25 Points) Take two command line parameters, the first of which is the name of a directory, and the second is a file size in bytes. Call your shell script "listfiles". The call from the shell prompt should look like S listfiles /trnp 50" First of all, your shell script should check that only two parameters are passed to it. Then your shell script should check that the first parameter is in fact a directory Your shell script, should list all the regular files in the directory to which you have read access and that are smaller than the given size

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!