Monday, November 28, 2011

How to count number of files in a directory

$ ls -1 targetdir | wc -l

No comments:

Post a Comment