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