1shcat() 2{ 3 while read -r line 4 do 5 echo "$line" 6 done 7} 8 9shcat2() 10{ 11 while [ $# -ge 1 ]; do 12 case "$1" in 13 -) shcat ;; 14 *) shcat < "$1" ;; 15 esac 16 shift 17 done 18 exit 0 19} 20