I want to find and count all the files on my system that start with some line, for example "foo" , using only one line in bash.
I am new to bash, so I would like to avoid scripts if possible - how can I do this using only simple bash commands and possibly laying out only one line?
So far I have used find / -name foo* . This returns a list of files, but I do not know what to add for the actual file count.
source share