summaryrefslogtreecommitdiffstats
path: root/examples/functions/shcat2
blob: 8ceff330b9e53d1921c1ff0b58bbddb45230c6e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
shcat()
{
	while read -r
	do
		echo "$REPLY"
	done
}

shcat2()
{
	while [ $# -ge 1 ]; do
		case "$1" in
		-)	shcat ;;
		*)	shcat < "$1" ;;
		esac
		shift
	done
	exit 0
}