Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by keszler (Priest)
on Sep 18, 2011 at 11:04 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://926595]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-16 15:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found