summaryrefslogtreecommitdiffstats
path: root/examples/scripts/cat.sh
blob: 3e65b3fc174f4f9a5c5b315c6596d79156067d26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
shcat()
{
	while read -r ; do
		printf "%s\n" "$REPLY"
	done
}

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