/ Published in: Bash
A very simple quick way to count the number of files in a directory.
Expand |
Embed | Plain Text
ls -1 | wc -l ## You can also use find to search recursively and count the returned files: find . -name "*.rhtml" | wc -l
You need to login to post a comment.
