zsh入門 パート2at UNIXzsh入門 パート2 - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト879:名無しさん@お腹いっぱい。 04/01/26 11:42 モニタに赤セロハン貼っとけ。 880:名無しさん@お腹いっぱい。 04/01/27 02:00 >>877 その、「フィルタ書いて常に使う」っていうのが、 どのように設定すればいいのかイメージできないんですが。 >>879 それじゃ全部エラー出力に見えます。 881:名無しさん@お腹いっぱい。 04/01/27 12:45 簡単にやるとしたらこんな感じかな。ただ、端末周りを扱うプログラムで支障が あるかもね。 % cat ./tored tored () { local line while read line; do print "\e[31;1m$line\e[0m" done } % source ./tored % perl -e 'printf STDERR "this is stderr.\n"' this is stderr. % perl -e 'printf STDERR "this is stderr.\n"' | tored this is stderr. % perl -e 'printf STDERR "this is stderr.\n"' 2>&1 | tored this is stderr. % exec 2> >(tored) % perl -e 'printf STDERR "this is stderr.\n"' this is stderr. # 色は省略しています 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch