I am trying to run many commands in parallel, and need to do some string manipulation on the input first. How can I make the below example work?
find . -mindepth 1 -type d | xargs -n 1 -P 20 -i sh -c "v={}; echo $v"
When I use this, $v is null. Why is it not being saved as the value of {}?