LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
EOF at end of command?


Hi,
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
}
EOF
 
Old 03-29-2012, 06:50 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
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, 07:04 PM   #3
sgull
LQ Newbie
 
Registered: Mar 2012
Distribution: Mint 12 and Lucid Puppy dual boot
Posts: 16

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


Reply


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 11:11 AM
man command - (END) michshelly Linux - Newbie 6 04-27-2006 04:04 AM
End Session Command bmccorm2 Fedora 1 10-16-2005 03:14 PM
Command stream end of file tinaa Linux - Software 8 08-29-2003 03:15 PM
End Of File Key (EOF) in linux ereeno Linux - Software 3 08-05-2003 04:05 AM


All times are GMT -5. The time now is 04:42 PM.

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