David C. Rankin wrote:
On Saturday 17 October 2009 02:53:58 am Per Jessen wrote:
David C. Rankin wrote:
I was pecking around on a script for rsync that would take the same type of file and path information with wildcards and hit upon a really cool way to handle the input without having to quote the names with wildcards to prevent expansion.
Personally, I would probably have used a filelist as input. In particular with rsync where it's difficult to use xargs.
/Per
Per,
You got an example of a filelist I can steal? I'm always looking for better ways to do things.
Hi David Maybe the filelist doesn't really apply here - I have to admit not having studied your script in greater detail, but when I don't want wildcards expanded on the command line, I just escape them (\* etc), so perhaps I don't really recognize the problem you are solving.
Then with the double loop, I cut all my typing down to
2box /first/path /next/setof/fil* /etc/X11/x*
I think I would done something like this: rsync -av /first/path /next/setof/fil\* /etc/X11/x\* <destination> If it needs to be wrapped in a script: rsync -av $@ <destination> The filelist option is really when you want to make sure you can specify _any_ number of files. /Per -- Per Jessen, Zürich (5.1°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org