[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
For some strange reason I keep encountering this problem when dealing
with network devices.
Basically I have shell variables set such as
eth0="eth0 up 192.168.0.1 netmask 255.255.255.0"
which are used something like:
ifconfig $eth0
What I want to do is change the above line to something like:
ifconfig ${$device}
where device=eth0, so that bash substitutes it to give:
ifconfig $eth0
Anyone know if this sort of thing is possible? I have no idea what it
would actually be called.
Thanks
Simon
--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html