parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Distribute files to directories instead of ssh servers?


From: P Fudd
Subject: Distribute files to directories instead of ssh servers?
Date: Tue, 4 Jun 2013 13:50:58 -0700
User-agent: SquirrelMail/1.4.20-2.fc11

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

[Prev in Thread] Current Thread [Next in Thread]