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

Re^2: beginners trap: one liner

by Your Mother (Archbishop)
on Jan 05, 2020 at 04:24 UTC ( [id://11110965]=note: print w/replies, xml ) Need Help??


in reply to Re: beginners trap: one liner
in thread solved: beginners trap: one liner

I’m going to echo what Laurent_R said. I checked my history from today and I’ve got 257 one liners there. Everything from–

perl -E 'sleep 60 * 115; qx{say "Dishes are done."}' # to ack '(quote|trade)_time' ~/trade.stream | perl -nE '/(\d+)/ and say $1 +' | sort > ~/sorted

I think the disconnect is because WIN is a terribly crippled environment. I personally cannot understand how anyone puts up with it. Even the PowerShell… The funniest part is how often jeffa used to accuse me of being a M$FT shill because I defended Perl use on WIN as being good for Perl. I doubt he hates WIN even as much as I do but it’s none of my business what other people use and the more chairs at the table the better. But I digress; widely, wildly. :P Point is, I’m not even that good with the shell or with sysadmin stuff in general and knowing just a handful of commands and pipe techniques makes me drastically more productive than someone who doesn’t.

TL;DR: I encourage you to explore one-liners and for sure try ack.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-03-28 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found