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
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
Get step-by-step solutions from verified subject matter experts
