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