Joined May 2015
·

Ole Tange

Copenhagen
·
·

Posted to Using xargs and positional args over 1 year ago

GNU Parallel has built in support for positional arguments:

seq 12 | parallel -N4 echo arg4:{4} arg1:{1} arg3:{3} arg2:{2}

For minimizing number of times you have to enter password for scp try:

find ... | parallel -j1 -X scp {} other@server:

Learn more: https://www.youtube.com/playlist?list=PL284C9FF2488BC6D1 http://www.gnu.org/software/parallel/parallel_tutorial.html

Achievements
1 Karma
0 Total ProTip Views