[問題] bash 的 std out & std err 導到 less
個人習慣用 tcsh ,有時不得不用 bash
tcsh 可以這樣下
/path/to/command |& less
bash 我只會這樣
/path/to/command > tmepfile 2>&1
再 less tmepfile
有點麻煩,請問有辦法一行解決嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.251.86
→
08/20 14:50, , 1F
08/20 14:50, 1F
→
08/20 14:59, , 2F
08/20 14:59, 2F