iT邦幫忙

0

Bash的問題

Dear Sir
問一個比較基礎的問題,是真的發問不是來鬧的
我希望將原始碼 make之後的訊息丟到某個文字檔,請問該如何用bash做到呢
另..會影響到make的結果嗎?
感恩

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

10
wiseguy
iT邦超人 1 級 ‧ 2011-06-29 20:09:46
最佳解答

make > result.txt
希望這是你要的 .... 汗

cjtjava iT邦新手 3 級 ‧ 2011-06-30 10:14:17 檢舉

make > result.txt
make > result.txt 2>&1
請問上面兩行指令的結果差別是?

sula3065408 iT邦研究生 1 級 ‧ 2011-06-30 14:50:44 檢舉

1.只有STDOUT寫到result.txt
2.STDOUT+STDERR訊息都寫到result.txt

可以去鳥哥的網站學習一下...

我要發表回答

立即登入回答