I want to use parallel in this example:cat codigos.txt | parallel -j 10 wget http://mywebsite.com/teste?id={}&x=&date=01/01/2017 --load-cookies=cookies.txtI have three files: codigos.txt, a file with the ids, dates.txt, a file with the dates and cookies.txt the file with the cookie that I need to do the request.What I want to do is to save the response from mywebsite.com for each url, using the contents of my files.Problems:How do I do to use information coming from two files?The url is cut at the '&' (even when I put the quotes). Example:request made to http://mywebsite.com/teste?id=1 As this example (but without put the space or cut because of the '&'):cat abc-file | parallel -a - -a def-file echoreference: https://www.gnu.org/software/parallel/parallel_tutorial.html
How to use shell parallel with two files
shell;parallel
I assume you want to run:wget http://mywebsite.com/teste?id=codigo1&x=&date=01/01/2017 --load-cookies=cookies.txtwget http://mywebsite.com/teste?id=codigo1&x=&date=02/01/2017 --load-cookies=cookies.txtwget http://mywebsite.com/teste?id=codigo1&x=&date=03/01/2017 --load-cookies=cookies.txtwget http://mywebsite.com/teste?id=codigo2&x=&date=01/01/2017 --load-cookies=cookies.txtwget http://mywebsite.com/teste?id=codigo2&x=&date=02/01/2017 --load-cookies=cookies.txtwget http://mywebsite.com/teste?id=codigo2&x=&date=03/01/2017 --load-cookies=cookies.txtif the file codigos.txt contains:codigo1codigo2and dates.txt contains:01/01/201702/01/201703/01/2017then this will work:mywget() {    wget http://mywebsite.com/teste?id=$1&x=&date=$2 --load-cookies=cookies.txt;}export -f mywgetparallel mywget :::: codigos.txt dates.txt