in reply to col-uniq -- remove lines that match on selected column(s)

This is nice - and now I'll suggest changing it <grin>

Since this will most often be used following a sort, I suggest the options should match sort's, i.e. -t for delimiter, -k for column.

Also, you should make this a CPAN module: App::col-uniq

  • Comment on Re: col-uniq -- remove lines that match on selected column(s)

Replies are listed 'Best First'.
Re^2: col-uniq -- remove lines that match on selected column(s)
by graff (Chancellor) on Sep 18, 2011 at 22:17 UTC
    I appreciate the suggestions, but I'll respectfully decline. My '-c' and '-d' options work very differently from the '-k' and '-t' options in unix 'sort' (and I don't really want to implement the 'sort' style for these options), so I'd rather not confuse people by suggesting that they're the same thing. (Plus I have a few other utils for flat-table text data that use '-c' and/or '-d' the same way this script does.)

    BTW, I checked out the App:: name space at the CPAN, and didn't find a lot of command line utils there. If I use the search term command line utility, I see more things that this script might group with, but they don't seem to be in a specific name space.

    Oh well, having this up at PerlMonks (with a link on my home node) is good enough for me.