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