I'm writing a small script to count all the files in a directory, and have a solution as follows:
find . -maxdepth 1 -type f | wc -l
I understand everything in this solution so far, except for the period after find. Why is it there, and what does it do? Why does the solution not work without it? E.g. why can't I just write:
find -maxdepth 1 -type f | wc -l