Here's how I'm grepping for lines:
grep "random text" /
I want to curl based on the text found. This is what I've tried:
grep "random text" / | curl http://example.com/test.php?text=[TEXT HERE]
What I don't understand how to do is use the results of grep while curling. How can I replace [TEXT HERE]
which the results of my grep so it's getting the correct url?