From charlesreid1

(Created page with "http://www.tldp.org/LDP/abs/html/io-redirection.html")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
http://www.tldp.org/LDP/abs/html/io-redirection.html
http://www.tldp.org/LDP/abs/html/io-redirection.html
Do this:
<pre>
ls -yz >> command.log 2>&1
</pre>
not this:
<pre>
ls -yz  2>&1 >> command.log
</pre>
==flags==
[[Category:Bash]]

Latest revision as of 03:33, 24 March 2018

http://www.tldp.org/LDP/abs/html/io-redirection.html

Do this:

ls -yz >> command.log 2>&1

not this:

ls -yz  2>&1 >> command.log


flags