Revision: 27499
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 11, 2010 14:57 by oznek
Initial Code
#!/bin/sh
if [ -t 0 ]; then
echo running interactivelly
else
while read -r line ; do
echo $line
done
fi
Initial URL
http://stackoverflow.com/questions/2456750/detect-presence-of-stdin-contents-in-bourne-shell
Initial Description
Initial Title
Test stdin data presence in bash
Initial Tags
Bash
Initial Language
Bash