About 67 results
Open links in new tab
  1. linux - What does <<EOF do? - Super User

    Nov 22, 2015 · Instead of using cntrl+d, Cat<<EOF command can be used in this scenario and type EOF at the end of the paragraph. The system will consider EOF as the End of the para. Instead of …

  2. 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 referring mainly …

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

    I am currently reading the book C Programming Language by Ritchie &amp; Kernighan. And I am pretty confused about the usage of EOF in the getchar() function. First, I want to know why the value o...

  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 read (but …

  6. 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 know the end of the …

  7. c++ - What does eof () returns? - Stack Overflow

    Apr 9, 2013 · 4 eof () returns true when the position you are at in the stream you are reading from is has reached the end of the file. It actually returns the value of the eof flag that gets set when the end of …

  8. EOF | grep" work in bash? - Unix & Linux Stack Exchange

    Dec 31, 2021 · In this answer to How does &quot;cat &lt;&lt; EOF&quot; work in bash? on Stack Overflow, I get the first two points. But I don't get the third point Pass multi-line string to a pipe in …

  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. bash - What is the difference between `cat EOF` and `cat EOT` and …

    Jun 9, 2022 · That other question you linked asked for explanation why EOF has a different value than EOT. And as explained, EOF is a condition, whereas EOT is a valid byte value and character, and …