I am trying to achieve the following and I want to do it on multiple processes using GNU parallel.
for i in $(seq 0 3); do
var=$(printf "%.5d" $i)
echo test_$var
done
Output:
--------------------
test_00000
test_00001
test_00002
I tried this and it's not working:
parallel var=$(print "%.5d" {})\; echo test_$var ::: $(seq 0 3)