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

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