[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Favorite commands: wc
On Fri, 4 Jan 2002, Flood Randy Capt AFCA/TCAA wrote:
>
> For example,
>
> "cat foo.txt|grep the | wc -l"
>
> will tell you the number of lines that contain the word "the" in the
> file foo.txt. You can do this slightly more compactly without using
> cat, but I used it for clarity.
>
Heh,
"grep -c the foo.txt"
does the exact same thing :-)
--
Kara Pritchard Phone: 618-398-7360
Director of Exam Development http://www.lpi.org/
--
-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.