illumos-port-bash/examples/scripts/cat.sh

13 lines
114 B
Bash

shcat()
{
while read -r ; do
printf "%s\n" "$REPLY"
done
}
if [ -n "$1" ]; then
shcat < "$1"
else
shcat
fi