LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help me-key combination for EOF? (http://www.linuxquestions.org/questions/linux-newbie-8/help-me-key-combination-for-eof-765810/)

mercury1992 10-31-2009 11:03 AM

help me-key combination for EOF?
 
what is the key combination for the EOF character on the terminal?
pl tell,i need it to complete my assignments

catkin 10-31-2009 11:20 AM

Search Wikipedia for EOF and find this (after a reading about a god-struck shepherd).

mercury1992 11-01-2009 01:51 AM

my terminal does not respond to ctrl+d ....i am running a code which takes its input from the user and stores the input in a text file.can u please tell me any alternative key combinations as this one is not working....

neonsignal 11-01-2009 01:58 AM

If you are running a program that inputs from the terminal, then ctrl-D is the end of file marker. Typically you would have to enter the ctrl-D on a new line.

If this doesn't work, then perhaps there is a problem in the code. Does it work when redirecting input from a file?

I'm assuming you are using a bash shell under linux?

r_s 11-01-2009 07:48 AM

If you are taking input from the terminal and just redirecting it to a file, then Ctrl-D will be the end of file marker and it will mark the end of your input.


All times are GMT -5. The time now is 11:43 AM.