Question: Enter the following script into vi, calling it scriptFinal. #i/bin'bash for file in $@; do if [ -r $file && -w Sfile && -x $file

 Enter the following script into vi, calling it scriptFinal. #i/bin'bash for

Enter the following script into vi, calling it scriptFinal. #i/bin'bash for file in $@; do if [ -r $file && -w Sfile && -x $file ]) then count=%({count+1)) fi done echo Of the $ files entered, $count were riwfx Run the script to make sure it works. Modify the script in three ways: 1. output an error message if no parameters are supplied 2. rather than counting the number of files, find out total number of files that have read permission for the group and execute permission for others 3. output a message 'the directory is not pemmissible to list' if the directory you are trying to list does not have a read permission (5 pts Bonus)

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 Mathematics Questions!