2022-05-15から1日間の記事一覧
要旨 Bashで用意されているプロセス置換 (Process Substitution) という仕組みを使うと、下記のような書き方ができる。 $ ls /foo/bar 1> >(tee stdout.log) 2> >(tee stderr.log) ls: /foo/bar: No such file or directory # <--- 標準エラー $ cat stderr.…
要旨 Bashで用意されているプロセス置換 (Process Substitution) という仕組みを使うと、下記のような書き方ができる。 $ ls /foo/bar 1> >(tee stdout.log) 2> >(tee stderr.log) ls: /foo/bar: No such file or directory # <--- 標準エラー $ cat stderr.…