About 2,630,000 results
Open links in new tab
  1. linux - How does "cat << EOF" work in bash? - Stack Overflow

    EOF This correctly constructs the multi-line string (from BEGIN; to END;, inclusive) and pipes it as an input to psql. But I have no idea how/why it works, can some one please explain? I'm …

  2. End of File (EOF) in C - Stack Overflow

    The value of EOF is -1 because it has to be different from any return value from getchar that is an actual character. So getchar returns any character value as an unsigned char, converted to int, …

  3. linux - What does <<EOF do? - Super User

    Nov 22, 2015 · I am a newbie in Linux admin and while I'm learning GDB to debug my code, I need to create an input.txt file for my program to read. I know redirection symbols such as …

  4. What is EOF in the C programming language? - Stack Overflow

    EOF which expands to an integer constant expression, with type int and a negative value, that is returned by several functions to indicate end-of-file, that is, no more input from a stream; It is …

  5. What is different between "<<-EOF" and "<<EOF" in bash script?

    May 1, 2020 · If you use <<-EOF, I recommend the man page of the Bourne Shell: If, however, the hyphen (-) is appended to <<: leading tabs are stripped from word before the shell input is …

  6. I'm trying to understand getchar() != EOF - Stack Overflow

    May 23, 2012 · EOF is a special character used in C to state that the END OF FILE has been reached. Usually you will get an EOF character returning from getchar() when your standard …

  7. c++ - How does ifstream's eof () work? - Stack Overflow

    Dec 26, 2010 · The EOF flag is only set after a read operation attempts to read past the end of the file. The last bit is critical: If I read 3 bytes from a file 3 bytes long, EOF is false, until I …

  8. How to enter the value of EOF in the terminal - Stack Overflow

    Aug 15, 2012 · Bear in mind that EOF is what the library returns when you read input, and is not representable as a printable character anyway. When you are writing output in your terminal, …

  9. How would you represent EOF in bash? - Stack Overflow

    Jan 21, 2009 · But there is no character that would represent eof, because its whole purpose is to be not a character. If you want to read everything from stdin, up until the end of file, try

  10. linux - What is EOF!! in the bash script? - Stack Overflow

    Aug 30, 2013 · custom_command << EOF!! I want to ask what EOF!! is in the bash script. I did find EOF with google, but google will ignore the "!!" automatically, so I cannot find EOF!!. I …