2007-12-07 パイプ sh pipe.sh #!/bin/sh if [ -p /dev/stdin ]; then cat - fi % echo 'hoge'|/path/to/pipe.sh