Is there a bash command which counts the number of files that match a pattern?

For example, I want to get the count of all files in a directory which match this pattern: log*

16 Answers
16

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *