I am trying to find the word count of a specific word in a collection of documents, in Linux.
I have tried with grep and ack-grep in combination with wc but I can't seem to come up with a valid combination of pipes :)
|
I am trying to find the word count of a specific word in a collection of documents, in Linux. I have tried with |
|||
|
|
|
Try the following:
If you want all files in a directory, run the following script from that directory:
|
|||||
|
|