Question: Write a bash shell script that will display the total number of files, within a givendi rectory, whose names start with b and consist of

 Write a bash shell script that will display the total number

Write a bash shell script that will display the total number of files, within a givendi rectory, whose names start with b and consist of exactly 5 characters. The name of the directory is given as command line argument at the shell prompt. A sample run: testscript /bin/ testscript /usr/include/ 1 There are 4 matches in the /bin directory and 1 in the/usr/include directory the shell script at the shell prompt. The above sample runs become: testscript /bin b testscript /bin f . Modify your script so that the starting letter (b) becomes the second parameter passed to 3

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!