Code Experiments Errata
Count the Number of Files in a Directory
‹
CstringIO
DBIx and SimpleXML
›
ls -1Ra | wc | awk '{printf("There are %s files in this directory!\n",$1-2)}'
By Albert on
November 8, 2009 8:40 PM
Tags
awk
,
bash
,
directory
,
files
‹
CstringIO
DBIx and SimpleXML
›
Yearly
Archives
2011 (2)
2010 (1)
2009 (23)
2008 (16)
2007 (14)
Categories
⊕
Search
Related Pages
Bash Script to Convert CSV to RRDTool Updates
Network Pages
Recently Used Documents in Ubuntu Gnome, OpenOffice Margins, and Printing from the Command Line
Reorganizing Publishing Targets in Movable Type
Stop Gimp From Displaying Hidden Files in Open File Dialog
Bash Tips
Cleaning out a debian machine