My code goes something like this:
echo "$result" | xargs -P50 -I@ bash -c '{ printf "@ $(curl --write-out "%{http_code}" -L -s --output /dev/null @)\n"; }'
Where result is containing a list similar to :
https://example.com/somepath
https://example.com/somepath"
https://example.com/anotherpath?par1&par4=gg
The expected output [URL STATUS-CODE]
https://example.com/somepath 200
https://example.com/somepath" 200
https://example.com/anotherpath?par1&par4=gg 200
The issue is when running this snippet, i get the error
bash: quot: No such file or directory which is separated by the andsign & and i cant seem to work around it
I tried wrapping @ in single/double quotes but nothing worked