Patch-ID: bash40-021
[bash.git] / examples / functions / shcat2
blob6fe90f4090d844e7311b70d6690fc104ba652418
1 shcat()
3         while read -r line
4         do
5                 echo "$line"
6         done
9 shcat2()
11         while [ $# -ge 1 ]; do
12                 case "$1" in
13                 -)      shcat ;;
14                 *)      shcat < "$1" ;;
15                 esac
16                 shift
17         done
18         exit 0