I'd like to be able to use the number of a process in a GNU parallel command. For instance, I want to distribute 100 files semi-evenly to 32 machines named node00 - node31. Perhaps it would look something like this, using "{p}" as the replacement string for the process number:
$ parallel -P32 scp {} node{p}:/data ::: *.gz
That way, 3 or 4 files go to each of node00, node 01...
Or I want to concatenate 100 files semi-evenly into 16 pieces:
gives 16 files named output-file00.txt ... output-file15.txt, each consisting of 6 or 7 of the input files.
It's also useful to have a replacement string for the total number of processes (the -P given, basically), maybe {P}, and the number of the input item, maybe {n}.