hi,
I am running the following command from my bash shell script:
Code:
#!/bin/bash
/usr/sbin/grub --no-floppy --batch << EOF
find /sbin/init
quit
EOF
Now I know that (manually doing this) GRUB's find command returns the following on bash prompt:
Code:
debian:~#grub --no-floppy
grub> find /sbin/init
(hd0,8)
grub>
All I want to do is grab the drive letter ("hd0" or whatever grub returns) into a variable in my shell script.
Thanks