Ed Robitaille <[EMAIL PROTECTED]> writes:

> Well, I found a FAQ for GRUB. It has a question/answer for making a boot
> floppy with a menu. I formatted the floppy, copied the files and then
> 
>       5. Run the following commands (note that the executable grub may
>       reside in a different directory in your system, for example,
>       /usr/sbin):
> 
>       /sbin/grub --batch --device-map=/dev/null <<EOF
>       device (fd0) /dev/fd0
>       root (fd0)
>       setup (fd0)
>       quit
>       EOF
> 
> How do I type 'EOF' (What keystrokes ??)

In your case, just type 'E', 'O', and 'F' at the beginning of a line,
and then hit return.

However, in a seeming paradox, there is no EOF file character in
Unix... (-: 

The general form that you're looking at here:

command << BLAH
Hey, look, it is some BLAH BLAH BLAH arbitrary text
And this BLAH BLAH BLAH can span multiple lines too.
BLAH
# this last BLAH must start in the first column

is called a "here-is" document in Unix shell parlance (by shell, I
mean things like the Bourne, Korn, and Bash shells).  Perl also
supports this syntax, BTW.

  (try substituting "cat" for "command" above if you wish)

"Here-is" documents are used frequently.  It's a convenient
notation...

Regards,

--kevin  (who is ecstatic now that he found the bug he looked for all
          day long)

-- 
Kevin D. Clark / Cetacean Networks / Portsmouth, N.H. (USA)
cetaceannetworks.com!kclark (GnuPG ID: B280F24E)
alumni.unh.edu!kdc

_______________________________________________
gnhlug-discuss mailing list
[EMAIL PROTECTED]
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss

Reply via email to