No such thing as a small change | |
PerlMonks |
Re: count of a word occurrenceby chimni (Pilgrim) |
on Mar 23, 2004 at 04:15 UTC ( [id://338886]=note: print w/replies, xml ) | Need Help?? |
1) read the file in a while loop,split and use a hash ($hash{$_}++ ). 2) use someting like the below for all unique entries in the first column. grep 817 filename | wc -l hth chimni
In Section
Seekers of Perl Wisdom
|
|