Read a file of text, determine the n most frequently used words, and print out a sorted list of those words along with their frequencies.
You are just citing a very common question asked in universities. But come to think of it, is determining n most frequent words a part of your daily job. Anyway, I never said that powershell was better than bash. If you see the quoted text, the context was bash vs cmd., I just made it to bash vs powershell.
And for your answer, here you go -
Get-Content file.text | Group | Sort | ft name,count -Autosize
Now you see the coolness of it ?
Pretty much my only gripe is I wish the default shell were Bash instead of CMD (and Cygwin still sucks).
Well, you have powershell for that. In case you didn't know, Powershell is windows' answer to bash. It is a runtime interpreter, has a programming language of its own and can automate any kind of administrative task in seconds. Its pretty cool.
They need water to reproduce in so they live in predominantly wet areas. Evolution made the rain resistant mosquito's breed and the non resistant ones extinct.
First question- Why would they need water to reproduce in the first place? Why didn't evolution happen to occur in some other way. Even if by someway, we accept that they need water for reproduction, they don't need to be resistant to rain for this. Water and rain are entirely two different things. Even we need water to live, but that doesn't mean we are resistant to floods. Even the word "resistant" is ambiguous. So what I am trying to say is that the falling raindrop doesn't affect the flight of a mosquito, simple as that. Why ? because of their body structure. Now why their body structure is like that is a question that somebody else have to answer.
Always draw your curves, then plot your reading.