Say I have a file with the following
bob
john
sue
Now these directly corrospond to (in this case) URL pattern such as http://example.com/persons/bob.tar, john.tar, sue.tar.
I would like to take these lines and run them through xargs. I don't know what is passed to the command being executed though. How do I access the parameter either from the prompt (say I want to simply echo each line like cat file | xargs echo $PARAM) or from a bash script.
xargsit breaks it up by line and feeds each line into a command, right? How do I access that if I need to say something likecat file | xargs curl http://example.com/[PASSED FROM FILE].tar?