i-bash/examples/scripts/cat.sh

13 lines
114 B
Bash
Raw Normal View History

2001-04-06 19:14:31 +00:00
shcat()
{
while read -r ; do
2011-11-21 20:51:19 -05:00
printf "%s\n" "$REPLY"
2001-04-06 19:14:31 +00:00
done
}
if [ -n "$1" ]; then
shcat < "$1"
else
shcat
fi