I want to pass curl the output from awk
./jspider.sh http://www.mypage.com | grep 'resource' | awk '{print $4}' | curl OUTPUT_FROM_AWK | grep myString
How can I achieve this?!
bashcurlpipe
I want to pass curl the output from awk
./jspider.sh http://www.mypage.com | grep 'resource' | awk '{print $4}' | curl OUTPUT_FROM_AWK | grep myString
How can I achieve this?!
Best Answer
Use
xargs
.There are more parameters and options than in this shortened form, of course.
A general example using
curl
:In your specific case, it'd look similar to the following: