I am trying to figure out to find word count of each word from my file
sample file
hi how are you
hi are you ok
sample out put
hi 1
how 1
are 1
you 1
hi 1
are 1
you 1
ok 1
wc -l filename
is not helping , i think we will have to split the lines and count and then print and also after getting sample output what i will need to do to get below out put if required