Bash shell is the common linux command language.
- Posts: 177
- Joined: Thu Mar 04, 2010 9:19 pm
I would like to read the result from one command into my script using piped.
But I don't know what kind of argument to use.
Can anyone help me with this?
- Site Admin
- Posts: 180
- Joined: Mon Jul 21, 2008 9:52 am
I think piped info is just as standard input.
Something like this should work
Standard input get stored in variable MESSAGE
You can test the script with this
echo "this is a test" | script.sh