Skip to content

Instantly share code, notes, and snippets.

@aloon aloon/inout.sh
Created Aug 30, 2014

Embed
What would you like to do?
Simple shell script to test STDIN and STDOUT
#!/bin/sh
if [ -t 0 ]; then
echo nothing in STDIN
else
while read LINE; do
echo ${LINE}
done
exit 0
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.