Counting the Lines in a Set of Files

I find myself needing this command every once in a while and I can never remember exactly how it goes. It parses through a directory (and subs) to give you a report on how many lines are in each file. It is great for working with csv files.

wc -l `find ./ -name '*.csv'`

I got this from an old post on Dev Shed forums that I participated in. I posted it here so I don’t have to keep seeking out the post every time I am trying to remember this command.

http://forums.devshed.com/showthread.php?p=1857692#post1857692

Command Line Reference

Came across this on digg today. It is another reference sheet for common Linux/Unix commands and programs. It has a lot of good common uses of good programs like scp, rsync, svn, psql and mysql.

http://cb.vu/unixtoolbox.xhtml

Linux/Unix Cheet Sheet Collection

This is a great article that compiles over fifty references for both Linux and Unix. It pretty much all command line references, which can be really handy.

Thanks to Scott Klarr for compiling this list of references.

Linux-Unix cheat sheets - The ultimate collection

{
}