
05-25-2007
|
 |
Shell programmer, author
|
|
Join Date: Mar 2007
Location: Toronto, Canada
Posts: 977
|
|
Quote:
|
Originally Posted by rinku
I want to count the number of occurence of perticular word from one text file.
|
Code:
tr -cs 'A-Za-z' '\n' < FILE | grep -c "WORD"
|