2018-04-28から1日間の記事一覧
2018 Jul. 07.2018 Apr. 28.〈tailコマンドに渡す例〉if [ -p /dev/stdin ]; then tail -else tail $1fi〈readコマンドに渡す例〉 function outputLine() { while read Line do echo $Line done < /dev/stdin }if [ -p /dev/stdin ]; then cat -else cat $1f…
2018 Jul. 07.2018 Apr. 28.〈tailコマンドに渡す例〉if [ -p /dev/stdin ]; then tail -else tail $1fi〈readコマンドに渡す例〉 function outputLine() { while read Line do echo $Line done < /dev/stdin }if [ -p /dev/stdin ]; then cat -else cat $1f…