]> git.ipfire.org Git - thirdparty/bash.git/blame - examples/functions/shcat2
bash-5.1 distribution sources and documentation
[thirdparty/bash.git] / examples / functions / shcat2
CommitLineData
cce855bc
JA
1shcat()
2{
8868edaf 3 while read -r
cce855bc 4 do
8868edaf 5 echo "$REPLY"
cce855bc
JA
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}