[心得] bash/tcsh 之 pipeline (redirect)

看板Linux作者 (呆大回鍋油)時間11年前 (2015/02/09 04:05), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串1/1
Shell: bash/tcsh Output: stdout/stderr target: file/console 總共有8種組合 stdout stderr 1 bash file.1 file.2 2 bash file.1 console 3 bash console file.2 4 bash console console 5 tcsh file.1 file.2 6 tcsh file.1 console 7 tcsh console file.2 8 tcsh console console 1. cmd > file.1 2> file.2 2. cmd > file.1 3. cmd 2> file.2 4. cmd 5. ( cmd > file.1 ) >& file.2 6. cmd > file.1 7. ( cmd > /dev/stdin ) >& file.2 這個試了好久, /dev/stdout 一直試不出來,stdin就好了 XD 8. cmd 給大家參考! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.112.251.86 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1423425957.A.FDB.html

02/09 23:19, , 1F
推 但標題改成direct好像比pipeline切旨?
02/09 23:19, 1F

02/09 23:48, , 2F
re ?
02/09 23:48, 2F
文章代碼(AID): #1Kry6b_R (Linux)