Thursday, 6 November 2014

Counting the number of files in a directory



Here is a simple way to achieve this (hidden ones won't count):

echo * | wc -w

No comments:

Post a Comment