DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
bash script get value from piped input
#!/bin/bash if [[ -p /dev/stdin ]] then PIPE=$(cat -) echo "PIPE=$PIPE" fi echo "ARGS=$@"
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#bash
#script
#piped
#input
ADD COMMENT
Topic
COMMENT
Name
8+9 =
Submit