sort list.txt|uniq -c

On Fri, Oct 15, 2010 at 7:00 AM, Kumar S <kush...@gmail.com> wrote:

> Q : A file has list of names. We need an algorithm to find the number each
> names repeats in that list. NOT case sensitive
>
> Example...
>
> namefile.txt has the content......
>
> bob
> abi
> jack
> ram
> jim
> tim
> joey
> riya
> kris
> bob
> kris
> ram
> jack
> joe
> joe
> joey
> bob
> bob
> bob
> kris
> joe
>
>
> this has more than 32000 in the list..  not limited number .
>
> Output : must have the distinct names and the count against them..
>
> Appreciate your inputs.
>
> Thanks n have a good one
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algoge...@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Man goes to doctor. Says he's depressed. Says life seems harsh and cruel.
Says he feels all alone in a threatening world where what lies ahead is
vague and uncertain. Doctor says "Treatment is simple. Great clown
Pagliacci is in town tonight. Go and see him. That should pick you up." Man
bursts into tears. Says "But, doctor...I am Pagliacci."

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to