Bash 標準出力と標準エラー出力を同時に受け取る
#!/bin/sh echo "abc" | awk '{ print("abc") > "/dev/stdout" print("zzz") > "/dev/stderr" }' > std.txt 2> err.txt
#!/bin/sh echo "abc" | awk '{ print("abc") > "/dev/stdout" print("zzz") > "/dev/stderr" }' > std.txt 2> err.txt