Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Awk and Perl unique features

by Fletch (Bishop)
on Apr 16, 2010 at 14:26 UTC ( [id://835107]=note: print w/replies, xml ) Need Help??


in reply to Re: Awk and Perl unique features
in thread Awk and Perl unique features

That's why you setup your shell with abbrevs and all you have to type is ,p2 or what not to have it expanded into | perl -lane 'print $F[2]' for you when you hit the space key.

(OK, technically I have ,2 which expands to | awk '{print $2}' which I use more often out of habit; but I've also got ,pa which expands out to | perl -lane, and thinking it over during the reply I may try making one that expands to | perl -lane 'print $F[~]' where the ~ is where the cursor is left after expansion a la TextMate snippets)

The cake is a lie.
The cake is a lie.
The cake is a lie.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2026-03-10 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.