Created
December 11, 2017 01:42
-
-
Save fujitayy/229e8ed59f144403382ac58b657a7907 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -p /dev/stdin ]; then | |
echo "IN PIPE" | |
elif [ -p /dev/stdout ]; then | |
echo "OUT PIPE" | |
else | |
echo "NO PIPE" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment