I have a file with words, some of them repeats. I need to write one liner that shows me the first 5 words with the biggest number of aparition, and will show me like this: number of aparitions space word. Any ideea?
If i use
wc -m filename
it will generate the number of characters and
wc -w filename
will generate number of words if i used this info by dividing number of characters/number of words it will give me misleading result as number of character will include spaces and punctuation as well as words count any advice ?
For the rest of today, every story you read in TechCrunch’s main news river will contain words.
This is an experiment, and it’s probably less of a risk than it might look. Words have always been central to TechCrunch’s approach. In fact, a huge number of our stories on any given day already include original words.
I am trying to divide a file using the number of words as a condition. Alternatively, I would at least like to be able to retrieve the first x words of a given file. Any tips?
Thanks in advance.