in reply to VVP:Perl oneliners for Unix commands

If all you got is a hammer, then everthing starts lookin' like a nail.

A Perl one-liner is complete overkill for something like this, especially when you have so many more appropriate/less obfu-looking tools and solutions at hand ...

Updates:

The echo trick may be Bourne/Korn-centric; buckaduck reports (and I've verified) that it doesn't work under csh.

Also corrected the search strings for grep and find.

    --k.


Replies are listed 'Best First'.
Re(2): VVP:Perl oneliners for Unix commands
by dmmiller2k (Chaplain) on Mar 13, 2002 at 19:08 UTC

    I agree. Overkill.

    BTW, you probably want single (non-interpolating) quotes in your third item, otherwise you run into the same problem as the first one (and the original question) had:

    • find . -name 'Q.PACES*' -print

    dmm

    If you GIVE a man a fish you feed him for a day
    But,
    TEACH him to fish and you feed him for a lifetime