Return to Snippet

Revision: 42746
at March 10, 2011 02:55 by alassiter


Initial Code
ls -1 | wc -l

## You can also use find to search recursively and count the returned files:

find . -name "*.rhtml" | wc -l

Initial URL

                                

Initial Description
A very simple quick way to count the number of files in a directory.

Initial Title
Count files in a directory

Initial Tags
command, unix, linux, line

Initial Language
Bash