Difference between revisions of "Scripting"

From Wikifications
Jump to: navigation, search
(created page with info on redirection)
 
Line 8: Line 8:
 
  >>    Append to standard output
 
  >>    Append to standard output
 
  2>&1|  Pipe standard output and standard error to another command
 
  2>&1|  Pipe standard output and standard error to another command
 +
|&    Same as above

Revision as of 19:16, 30 December 2005

Redirection:

>      Redirect standard output
2>     Redirect standard error
2>&1   Redirect standard error to standard output
<      Redirect standard input
|      Pipe standard output to another command
>>     Append to standard output
2>&1|  Pipe standard output and standard error to another command
|&     Same as above