linux wc to directory code example
Example 1: count no of file in a directory in unix
ls -1 | wc -l
Example 2: linux wc list of files
find ./ -type f -name "*work*" -exec wc -w {} +
ls -1 | wc -l
find ./ -type f -name "*work*" -exec wc -w {} +