顯示具有 shell 標籤的文章。 顯示所有文章
顯示具有 shell 標籤的文章。 顯示所有文章

2012年3月8日 星期四

Redirecting standard output and standard error

formal form:
$ ifconfig eth100 > msg.log 2>&1


can be shortened like that:
$ ifconfig eth100 &> msg.log

or
$ ifconfig eth100 >& msg.log


【Reference】
Bash Reference Manual