Using bash, how can one get the number of files in a folder, excluding directories from a shell script without the interpreter complaining?
With the help of a friend
Get rid of the quotes. The shell is treating them like one file, so it's looking for "ls -l".