2014年4月10日 星期四

[Linux]Redirect stderr into stdout

Add 2>&1 in the command line.

e.g. ipmitool -H 10.99.6.8 -U USERID -P PASSW0RD sel 2>&1 | awk 'NR==1{print $2}'



沒有留言: