Question: can you help me show bash script A5p1.sh to output the number of files and subdirectories separately in the directory that is specified as the

can you help me show bash script A5p1.sh to output the number of files and subdirectories separately in the directory that is specified as the first command line argument to this script. Do not count recursively in subdirectories. Do not call any existing Linux utilities such as "ls". You may refer to the testSearch.sh example and page 7 of the "Basic Bash Scripting Lab.docx" documentation in Folio to find out how to test if an item in a directory is a file or subdirectory. When grading, we will test your script using "./A5p1.sh

" where can be any absolute (those starting with '/') or relative directory (those not starting with '/'). A sample output can look like (You do NOT need to submit screen shots. Instead submit your source file.):

Number of files in

: 12

Number of subdirectories in

: 5

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