Open main menu

CDOT Wiki β

Changes

BASH Redirection

173 bytes added, 07:01, 16 September 2008
no edit summary
Both the stdout and stderr of the <code>ls</code> command will be sent to the printer.
 
= Using stdout as an Argument =
 
The <code>$( )</code> can be used to capture stdout of a command and use it as an argument to another command:
 
vi $(date +%Y)-notes.txt
 
[[Category:BASH]][[Category:Linux]]