Filenames with blanks

Ivan Kovalev ivan at wssource.com
Fri Aug 23 13:12:01 EST 2002


Command like this:
    rsync  -rxlupogtSvve ssh
$src_host:"/home/wss_disk/calendar.data/'Conference Calls'" $targ_dir
works fine with blanks embeded in the file name.
When I try to script it like this:
    COM='`find '$src_dir'  -mtime -'$days' -type f `'
    rsync  -rxlupogtSvve ssh  $src_host:"$COM" $targ_dir
works fine on regular filenames, but does not see the ones with blanks
in the middle.

I changed my COM to pipe through little script to produce the same
output where either the whole filepath or just the file name will be
quoted (as in the first example). That breakes it complitely and this
version does not work even for single word files. Output looks like
this:
.......................
receiving file list ...
link_stat /home/wss_disk/calendar.data/'Conference : No such file or
directory
link_stat Calls' : No such file or directory
link_stat /home/wss_disk/calendar.data/'Economic' : No such file or
directory

I probably am missing something simple, but could not figure what is it.
Please advise. Thank you.
--
Ivan Kovalev
Wall Street Source
120 Broadway, 27-th floor
New York, NY 10271
Pager: ikovalev at skytel.com, (888)688-5202
Phone: (212)479-1445
E-mail: ivan at wssource.com





More information about the rsync mailing list