Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by keszler (Priest)
on Sep 18, 2011 at 11:04 UTC ( #926595=note: print w/ replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://926595]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (17)
As of 2015-07-30 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls