How can I use the output of
sed in another script?
For example (this doesn't work):
sed -n "$COUNTER",1p /domains.csv | wget
sed -n "$COUNTER",1p /domains.csv > /myScript.sh
As far as I know
> lets me take the output and put it in a file, I'm just unsure of how to use this output as an argument in another script.
(I am aware I can declare the output as a variable, and then use it on the next line. I'm interested in how to do this as one "command")