Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: What one-liners do people actually use?

by Perl Mouse (Chaplain)
on Dec 08, 2005 at 21:21 UTC ( #515385=note: print w/replies, xml ) Need Help??


in reply to What one-liners do people actually use?

From my aliases file:
alias lssize="ls | perl -e 'print for sort {length (\$a) <=> length (\ +$b)} <>'" alias L="ls -l | perl -pe 's/^(.{78})...*/\$1>/;' | page"
But I write more one-liners in the shell, or in AWK.
Perl --((8:>*

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://515385]
help
Chatterbox?
[choroba]: talking about golfing, I did Pascal's triangle in 51 characters ;-)
[choroba]: and 99 bottles of beer in 217

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2017-10-22 20:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (275 votes). Check out past polls.

    Notices?