Re: RE:Bash scripting worries

2007-04-02 Thread Simon Geard
On Sun, 2007-04-01 at 09:51 +0100, Kevin Annies wrote: > I now wish to use the $NODE variable in a sed command to modify the > word 'DRIVE' in menu.lst, > I used the following command: > sed "s/DRIVE/$NODE/" /etc/install/lfsmenu.lst > > /home/TEMP/boot/grub/menu.lst ... > I used a similar command

RE:Bash scripting worries

2007-04-01 Thread Kevin Annies
Thanks for the tips, what you advised worked perfect. However, I now have a slightly different issue though within the same script. With your help, I modified the following lines accordingly PARTITION=$((PARTITION-1)) export NODE="$GRUB,$PARTITION" echo $NODE I now wish to use the $NODE variabl