I am trying to run a curl command which will need arguments coming in from a pipe
some operation | sort | head -n -2 | curl -s "blah/blah/<argument goes here>/blah"
i cant figure out how to pass each argument one at a time. One way that i found was
some operation | sort | head -n -2 | xargs -l "$" curl -s "blah/blah/$/blah"
but i get
xargs: $: No such file or directory
what does it mean? why is it trying to read $ as a file?