Re: subtotalling identical records



On Wed, 27 Sep 2006 08:01:44 -0500, Ed Morton <morton@xxxxxxxxxxxxxx>
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.

3 minutes! Awesome Ed.

thanks,
tony
.



Relevant Pages

  • Re: subtotalling identical records
    ... Any one-liners to do this? ... sort < file | uniq -c ...
    (comp.unix.shell)
  • Re: Open letter to Cooper
    ... that's far beyond the scope of my imagination. ... >> flights of imagination parading as truth. ... > "Masquerading" might have been a better choice of word, Bob, ... Tony Cooper's unlimited imagination, so as to lay the foundation for a ...
    (alt.usage.english)
  • Re: [SI] Tubes comments
    ... (Tony allsix) ... Nicely lit, neatly arranged, but will it be going onto a wall? ... (bob bridge) ... One day those trees may look nice in the fg, but for now, I think a shot that only showed the bridge structure would be more striking - dunno how you would locate yourself to do that, tho.. ...
    (rec.photo.equipment.35mm)
  • Re: Does Bob REALLY Think that this is his best band ever?
    ... seems to me that Bob has played with Tony Garnier longer ... all about the song, not the instrumental virtuosity. ... I agree that with Bob it is all about the song and that this band can ...
    (rec.music.dylan)
  • Re: Shallots
    ... >> OK Bob ... > Pickling is a preserving process. ... If you water down the ... Tony Bull ...
    (uk.rec.gardening)