Hi , i have text file like this:
i
am
fine
how
are
you
what
i
how
are
i need an output like below:
i : 2
am : 1
fine : 1
how : 2
are : 2
you : 1
what : 1
there can be many repititions of the words: how could i do this using a shell script or an awk?