Imported from ../bash-2.05.tar.gz.
This commit is contained in:
12
examples/scripts/cat.sh
Normal file
12
examples/scripts/cat.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
shcat()
|
||||
{
|
||||
while read -r ; do
|
||||
echo "$REPLY"
|
||||
done
|
||||
}
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
shcat < "$1"
|
||||
else
|
||||
shcat
|
||||
fi
|
||||
Reference in New Issue
Block a user