On Sun, 18 Oct 2015 16:20:15 +0000 (UTC) [email protected] (Christos Zoulas) wrote: > >In any case the other problem is that variable names can't be > >variable. I can't do "ifconfig_$eth0="etc...". I quess I just have > >to remember to edit the files when I move a server. > > sure they can, just eval them.
I tried that but it didn't work. Maybe I did it wrong. I will try again. OK, it did work. Not sure what I did the first time. eval "ifconfig_`ifconfig -lb | cut -d' ' -f2`=\"BLAH BLAH BLAH\"" Thanks. -- D'Arcy J.M. Cain <[email protected]> http://www.NetBSD.org/ IM:[email protected]
