source: vendor/bash/3.1-p17/examples/functions/shcat2

Last change on this file was 3228, checked in by bird, 18 years ago

bash 3.1

File size: 174 bytes
Line 
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}
Note: See TracBrowser for help on using the repository browser.