Question: Linux bash shell scripting question: Write a script which receives a directory name and iterates through all of the items in this directory, counting the

Linux bash shell scripting question:

Write a script which receives a directory name and iterates through all of the items in this directory, counting the number of items that are regular files, that are directories, and that are links, and output this result along with the total number of items being reported on. Run your script on several directories like /etc, /bin and ~.

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!