Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://926595]
[1nickt]: Corion Surely you have one or more lying around?
[Corion]: 1nickt: Not in the general sense... I only have very specific crawlers, but not a simple crawler like that ;) But maybe that would be a good application/( stress) test for Future::HTTP to parallelize
[Corion]: Also, a good application to test my API to rate limit things

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2017-10-18 11:27 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (244 votes). Check out past polls.