Question: Homework No.2 CSC 222 Write a shell script program called countf.sh that will count how many files or directories recursively. beside the file counts, also

Homework No.2 CSC 222 Write a shell script program called "countf.sh" that will count how many files or directories recursively. beside the file counts, also report how many files for each types (directory or regular files). It will either take arguments for specific directories and no argument. If no argument, it will read the current working directory as the starting point. Please also provide -h option to print out how to use your countf.sh program % ./countf.sh % ./countf.sh file1 file2 dir 96./countf.sh diri dir2 96./counti.sh-h hints: I would write a script function to process a count for each directory and return a number of files to be added up. You should have your linux or linux-like environment, either using virtual machine or have your own linux box
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
