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 :-)