I have a text file like this:
Apple
Orange
Orange
Banana
Banana
Orange
Banana
Orange
Apple
Orange
I want to produce the following output after running a bash shell script:
Apple: 2
Orange: 5
Banana: 3
It's pretty standard stuff if I use a full blown language like Java/C++ etc but what is the quickest way to do it with a shell script/command line?