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