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?
Hi Folks :)
I have a .txt file with thousands of words.
So i am trying to write a program called biggest that takes any number of arguments. For all the
arguments that are files, it finds the file with the most words in it, and prints a line
File whatever has largest number of words (37)
assuming the file called "whatever" has 37 words, which is more (or the same) as
any other files in the current directory.