看板 [ Linux ]
討論串[問題] bash 的 redirect
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者dyoll (lloyd huang)時間16年前 (2010/01/31 12:24), 編輯資訊
0
0
0
內容預覽:
lloyd@baby's bottle:$ cat test.sh. #!/bin/bash. ls -l /. date. #> ./test.sh > /tmp/log. #> ./test.sh | tee /tmp/newlog. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ F

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者kok45 (11)時間16年前 (2010/01/31 09:46), 編輯資訊
0
0
0
內容預覽:
請問. 我有一個 bash script. 我想把所有的 standard output 的 message 導到 一個 logfile 裡. 我只知道在所有有 output 的地方 加上 >logfile. 這樣感覺很不方便. 請問 可以怎麼做比較簡單?. ====================
(還有4個字)
首頁
上一頁
1
下一頁
尾頁