Re: subtotalling identical records
- From: Robert Katz <katz@xxxxxx>
- Date: Wed, 27 Sep 2006 18:54:38 GMT
Ed Morton wrote:
tony wrote:
I have a file of non-unique names.
allen
allen
allen
bob
bob
What I want is
allen 3
bob 2
Any one-liners to do this?
thanks
uniq -c file
Ed.
You might really need,
sort < file | uniq -c
--
Regards,
---Robert
.
- Follow-Ups:
- Re: subtotalling identical records
- From: bsh
- Re: subtotalling identical records
- References:
- subtotalling identical records
- From: tony
- Re: subtotalling identical records
- From: Ed Morton
- subtotalling identical records
- Prev by Date: Re: ps command differs in ksh and bash
- Next by Date: Re: Changing UnixID
- Previous by thread: Re: subtotalling identical records
- Next by thread: Re: subtotalling identical records
- Index(es):
Relevant Pages
|