1shcat() 2{ 3 while read -r ; do 4 echo "$REPLY" 5 done 6} 7 8if [ -n "$1" ]; then 9 shcat < "$1" 10else 11 shcat 12fi 13