if [ -p /dev/stdin ]; then
tail -
else
tail $1
fi
function outputLine() {
while read Line
do
echo $Line
done < /dev/stdin
}
if [ -p /dev/stdin ]; then
cat -
else
cat $1
fi | outputLine
if [ -p /dev/stdin ]; then
tail -
else
tail $1
fi
function outputLine() {
while read Line
do
echo $Line
done < /dev/stdin
}
if [ -p /dev/stdin ]; then
cat -
else
cat $1
fi | outputLine