Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-29-2012, 10:28 AM   #1
LQ Newbie
Registered: Mar 2012
Distribution: Mint 12 and Lucid Puppy dual boot
Posts: 16

Rep: Reputation: Disabled
EOF at end of command?

A particular command example was suggested and presented to copy for pasting, as commands typically are in forums. The following, which was shown within a discussion of editing a /etc/grub.d/40_custom file in GRUB2, includes this "EOF" at the end, and I'd like to know whether that's part of the command that is expected to be copied or just sort of a note to the reader meaning "end of file" or something. If I was to copy and paste this command into a terminal, do I include the "EOF" there at the bottom?

menuentry "Puppy 431 frugal on sda6" {
set root=(hd0,6)
linux /puppy431/vmlinuz psubdir=puppy431
initrd /puppy431/initrd.gz
Old 03-29-2012, 05:50 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Probably not. It may be the case that the EOF represents either the 'condition' of End-Of-File, or that there is some magic character that represents EOF (maybe Ctrl-D), but that is doubtful. It may also be the case that the script that someone posted included a 'Here-Document' format, which is something that permits text to be embedded literally into a script, and delimited by a certain token, of which 'EOF' sounds like a sensible one.

--- rod.
Old 03-29-2012, 06:04 PM   #3
LQ Newbie
Registered: Mar 2012
Distribution: Mint 12 and Lucid Puppy dual boot
Posts: 16

Original Poster
Rep: Reputation: Disabled
Great. Thank you theNbomr


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
gui read out of back end command lines from gui front end activation? how? Siljrath Linux - General 0 10-24-2008 10:11 AM
man command - (END) michshelly Linux - Newbie 6 04-27-2006 03:04 AM
End Session Command bmccorm2 Fedora 1 10-16-2005 02:14 PM
Command stream end of file tinaa Linux - Software 8 08-29-2003 02:15 PM
End Of File Key (EOF) in linux ereeno Linux - Software 3 08-05-2003 03:05 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:09 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration