bash 的 std out & std err 導到 less - Linux

Table of Contents

個人習慣用 tcsh ,有時不得不用 bash
tcsh 可以這樣下
/path/to/command |& less

bash 我只會這樣
/path/to/command > tmepfile 2>&1
再 less tmepfile

有點麻煩,請問有辦法一行解決嗎?


--

All Comments

Harry avatarHarry2013-08-21
bash 也可以用 |&
Oliver avatarOliver2013-08-24
感謝... (一直以來都在用蠢方法 QQ)