Question: I need help with this coding assignment for linux batch scripting. I understand that you wont have access to the files to actually see the

I need help with this coding assignment for linux batch scripting.

I understand that you wont have access to the files to actually see the files, but i assumed that the coding and or loops would be similar if you can invision the files being there. I need help with this coding assignment for linux batch scripting. I

CS 3030 Scripting Languages Lab 2: Search and Report Introduction Lab 2 is an opportunity to use a number of UNIWLinux tools to search subdirectories, report the nature of files found and produce a summary report. Requirements Your script shall be named ~/cs3030/Lab2/srpt and be marked executable. Here is how you execute your script: /srpt PATH Your script shall inspect the file names of every file and directory in PATH and accumulate a count of each of the following: Every file Every subdirectory (excluding "PATH" itself) Every symbolic link Every file that is 365 days old or older (old files) Every graphics file (any file with suffix of jpg, gif or bmp) Every temporary file (any file with a suffix of ".o") Every executable file (any file executable by the user) Total byte count of each file Your srpt script shall produce a report in this format in this order Search Report host path date Execution time nnn Directories ninnn, nnn Files n,nnn, nnn Sym links n, nnn ,nnn Old files n, nnn, nnn Large files n,nnn, nnn Graphics files ninnn, nnn Temporary files n,nnn, nnn Executable files ninnn,nnn Total file size ninnninnn Your searchreport script should exit with return code zero after producing its report unless the path was not specified on the commandline. If your script is executed without a PATH, issue this usage statement and 1 of 4

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!