skip to main
|
skip to sidebar
Using Unix or Linux effectively
I keep on forgetting unix commands. This blog will act as reference to me.
Wednesday, December 9, 2009
Count occurrence of words in a file
grep -c "myword" < file
cat file | grep -c "myword"
No comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
▼
2009
(2)
▼
December
(2)
More grep...
Count occurrence of words in a file
About Me
Rajan Punchouty
My
MBTI
profile of ESTP, define me very well. E - Extroversion, S - Sensing, T - Thinking, P - Perceiving. By profession i am techie and i love java programming.
View my complete profile
No comments:
Post a Comment