home

Quickies, by Andrea Olivato

text

Count multiple files lines with wc

Ok this is probably granted, but I didn’t know wc was able to read and count from multiple files at once.

# From standard input
cat *.pl | wc -l

# From list
wc -l file1.pl file2.pl

2 years ago

July 29, 2009
Comments (View)