LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-05-2003, 03:10 AM   #1
ereeno
Member
 
Registered: Jul 2003
Location: New Westminster BC, Canada
Distribution: mandrake 9.1
Posts: 58

Rep: Reputation: 15
End Of File Key (EOF) in linux


hello all

can someone tell me how to type the EOF key when at the command line? some programs i have written for school depend on this value to work.

it would be the equivalent of CTRL + Z in DOS

thanks in advance!
 
Old 08-05-2003, 03:26 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I don't know if it inserts an EOF, though I assume it must. To end a 'cat > foo.txt' at least, it's ctrl-d instead of ctrl-z.
 
Old 08-05-2003, 03:30 AM   #3
ereeno
Member
 
Registered: Jul 2003
Location: New Westminster BC, Canada
Distribution: mandrake 9.1
Posts: 58

Original Poster
Rep: Reputation: 15
yup, that worked, thanks!
 
Old 08-05-2003, 04:05 AM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Glad it worked.
 
  


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
file with ~ at the end ddaas Red Hat 5 07-13-2005 02:47 PM
bash redirection "$ cat << EOF > file" (how does this work) ninmonkeys Linux - General 1 11-09-2004 04:37 PM
When I ssh to a server, the end key doesn't work (tcsh) TroelsSmit Linux - Newbie 0 10-07-2004 06:44 AM
eof ... c ... linux xviddivxoggmp3 Programming 6 03-31-2004 01:56 PM
Script, Reading a file, When end of file? elibm Programming 2 07-16-2001 12:01 PM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration