Count the Number of Files in a Directory

ls -1Ra | wc | awk '{printf("There are %s files in this directory!\n",$1-2)}'
By Albert on November 8, 2009 8:40 PM