summaryrefslogtreecommitdiff
path: root/examples/scripts/cat.sh
blob: 78106b2161057165a8bfdaf908b7faf65b01b225 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
shcat()
{
	while read -r ; do
		echo "$REPLY"
	done
}

if [ -n "$1" ]; then
	shcat < "$1"
else
	shcat
fi