Counting Files in Linux

From Birnam Designs Wiki

Jump to: navigation, search

Combining the find and wc commands will allow you to count outputs. Example:

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

The -l switch specifies that the count is for the number of lines in the standard input, in this case the result of the find command.

Share This!
This page was last modified on 11 February 2010, at 19:53. This page has been accessed 506 times.