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. In the snippet I posted, I had just defined: SSUSER=me DESTHOST=mybox.mydomain.com DESTPATH=/the/long/path/to/where/the/files/went Then with the double loop, I cut all my typing down to 2box /first/path /next/setof/fil* /etc/X11/x* and let the two loops and rsync calls handle it from there: rsync -ruv ${CLIARRAY[${a}]} ${SSUSER}@${DESTHOST}:${DESTPATH} or rsync -ruv $b ${SSUSER}@${DESTHOST}:${DESTPATH} If a 'filelist' can do it with more flexibility, I'm all for learning (or at least trying to learn....:p) -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org