Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux:pipe [2019/06/05 11:40]
tmade [Pipe to a file]
linux:pipe [2019/06/05 11:43] (current)
tmade [Pipe to a file]
Line 18: Line 18:
  
   ls /opt/ /otherfile > file 2>&         #Redirect standard error output and standard output and to "file"   ls /opt/ /otherfile > file 2>&         #Redirect standard error output and standard output and to "file"
-  ls /opt/ /otherfile > file 1>&         #Redirect standard output to    +  programm &> file                         #Redirect stdout AND stderr to "file"
   echo "This is a test" 1> /dev/null       #Redirects standard output to /dev/null   echo "This is a test" 1> /dev/null       #Redirects standard output to /dev/null
   ls xyz > info.txt 2> error.txt           #Output of ls will be redirected to "info.txt" (stdout) and if there is an error output (stderr) to "error.txt"   ls xyz > info.txt 2> error.txt           #Output of ls will be redirected to "info.txt" (stdout) and if there is an error output (stderr) to "error.txt"
linux/pipe.txt · Last modified: 2019/06/05 11:43 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki