Question: Write a Bash script, count.sh, which builds an array of counters for the files starting with a digit under a directory given as a commandline

Write a Bash script, count.sh, which builds an array of counters for the files starting with a digit under a directory given as a commandline argument. For example, if there are 7 files starting with "0", and 3 files starting with "8", your script will print: 0 7 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 3 9 0

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!