a guest Feb 17th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- if file "$(readlink /proc/$$/fd/0)" | grep -q "character special"; then
- echo "Standard input:"
- elif readlink /proc/$$/fd/0 | grep -q "^pipe:"; then
- echo "Pipe input:"
- echo "File input:"
RAW Paste Data