can i get a simple script for , Count same word which has come many times in single lines & pars
Eg file would be ==
"
Thanks heman thanks thanks
Thanks heman
thanks man
"
So resullt should be
Thanks = 5
heman=2
man = 1
thanks in advance
---------- Post updated at 02:01 AM ---------- Previous update was at 01:48 AM ----------
nm, the below worked ..
/root #tr ' ' '\12' <test | tr 'A-Z' 'a-z' | sed s/[^a-zA-Z]//g | sort | uniq -c | sort -nr
334
76 a
69 volume
48 the
39 lvm
38 disk
36 vxvm
36 group
29 to
26 logical
19 volname
19 devvolgrp
17 volumes
16 in
15 or
14 diskgroup
13 remove
13 devvolgrplvolname
...
---------- Post updated at 02:02 AM ---------- Previous update was at 02:01 AM ----------
I will use code tag !!!
tx