No.
You can script it, iterating over the files as needed.
You'll need to use '/' instead of '\', even if you are going
to a MS
machine. Rsync will handle that translation just fine.
You'll have to do something like this (change the words
"directory" to
match the path containing the items of interest. Replace "options"
with
the appropriate options string to do what you want - probably "-az".
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
cd directory
initials=`ls |cut -c1 |sort|uniq`
for initial in $initials
do
rsync --options ${initial}* boxz:$initial
done
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This approach is, of course, only useable from the source system. To pull
from directory to A,B,C,etc., you'd just use the alphabet as your
$initials, and put up with errors when you request non-matching patterns.
I must mention that it takes only about 5 minutes (I just timed it) to
completely scan the rsync man page, at the end of which, one would note
that there is no "--sort-to-destination-directory-based-on-initial"
option.
Tim Conway
tim.conway@philips.com
303.682.4917 office, 303.921.0301 cell
Philips Semiconductor - Longmont TC
1880 Industrial Circle, Suite D
Longmont, CO 80501
Available via SameTime Connect within Philips, caesupport2 on AIM
"There are some who call me.... Tim?"
Roger Davenport <convivialdingo@yahoo.com>
Sent by: rsync-admin@lists.samba.org
08/27/2002 04:19 PM
To: rsync@lists.samba.org
cc: (bcc: Tim Conway/LMT/SC/PHILIPS)
Subject: RSync and translation
Classification:
Yeah or Nay...
I have a directory like this on box Y...
ALBERT
BRADLEY
CHARLEY
and I want rsync to transfer and translate this
into...
A/ALBERT
B\BRADLEY
C\CHARLEY
on box Z
Without altering the original directory. Can this be
done?
Thanks, Roger
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
--
To unsubscribe or change options:
http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html