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