Question: Write a short bash script named fileCount.sh where 1 . It will ask the user to enter a directory 2 . It will count the
Write a short bash script named fileCount.sh where
It will ask the user to enter a directory
It will count the number of files and prints a statement as shown below.
output should read:
Enter the name of directory: bin
There are files in bin
I.filecountsh: line : $r: command not found
find: : No such file or directory
find: maxdepth: No such file or directory
find: l: No such file or directory
filecountsh: line : $r: command not found
in e are II am getting this error message.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
