[PLUG] 'sort' to find duplicate rows

Michael Rasmussen michael at jamhome.us
Sat Jul 14 01:40:43 UTC 2012


On Fri, Jul 13, 2012 at 03:59:26PM -0700, Rich Shepard wrote:
>    The text file has > 120k rows; each row has 8 columns. There are
> duplicate rows that I want to eliminate. My reading of the sort man page and
> various Web pages with examples tells me that the sort --key option is
> limited to a sequential starting field and ending field. What I need is to
> sort on fields 1, 2, and 4.
 
You've a solution and all, but I'm curious.

If the lines are identical what difference does the sort key make?

-- 
            Michael Rasmussen, Portland Oregon  
      Other Adventures: http://www.jamhome.us/ or http://westy.saunter.us/
Fortune Cookie Fortune du courrier:
The universe is a program. You're just a subroutine.
    ~ Zach Weiner



More information about the PLUG mailing list