[wellylug] simple (bash) scripting question
Sam Cannell
sam at plaz.net.nz
Sat Jul 31 17:07:09 NZST 2004
On Sat, 2004-07-31 at 17:04, Mark Signal wrote:
> VARIABLE=`/path/cat common text file'
>
> rsync $VARIABLE source destination etc etc
>
> any ideas on how I could do this?
If you're not wanting to do any kind of validation on the paramaters
contained in the file, then something like this would suffice:
rsync `cat /path/to/configfile` <source> <destination>
Note that they're backticks (``) around the cat command, not apostrophes
('')
Hope this helps
Sam
--
Sam Cannell <sam at plaz.net.nz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20040731/f1adacb7/attachment.pgp
More information about the wellylug
mailing list