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

Re^2: beginners trap: one liner

by perlancar (Hermit)
on Jan 04, 2020 at 04:53 UTC ( [id://11110931]=note: print w/replies, xml ) Need Help??


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

With one-liners, you can:
  1. Edit previous command and re-execute quickly (Up arrow, edit, enter instead of Alt-Tab to Notepad2, edit, F2 or whatever, Ctrl-L). Okay, that's not much keystroke saving, but there's less windows/view switching.
  2. Utilize shell's tab completion to complete filenames, etc.
  3. Utilize shell's other features like brace expansion, environment variable expansion, etc.
  4. Pipe the output of script to other command; or receive other command's output as script's input.
  5. Easily redirect output of script to file.
  6. Store the previous commands in the shell history file.

Among others :-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-03-28 17:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found