Hello!

I'm trying to distribute 1000 files to 7 directories.  This is easy if
you're distributing to servers using parallel and ssh.

This command tries to move every file into every directory:

   parallel 'mv {1} {2}' ::: *.msg ::: /data/queue-{1,2,3,4,5,6,7}

I briefly toyed with

   parallel 'mv {1} /data/queue-$(( ( $PARALLEL_SEQ % 7 ) + 1 ))' ::: *.msg

but I was really hoping for something where I could specify the
destinations with a wildcard.

Is this possible?  Is this a potential new feature?

Thanks!

Reply via email to