About 83 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 referring mainly …

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

  3. 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 …

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

    EOF indicates "end of file". A newline (which is what happens when you press enter) isn't the end of a file, it's the end of a line, so a newline doesn't terminate this loop. The code isn't wrong [*], it just …

  5. 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

  6. 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 …

  7. 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 …

  8. bash - What is the difference between `cat EOF` and `cat EOT` and …

    Jun 9, 2022 · So distinguishing EOF and EOT can in a way signify the purpose of the here-doc content, in addition to delimiting overlapping portions of different here-doc. Finally. That other question you …

  9. 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 …

  10. How to visualize EOF in bash - Unix & Linux Stack Exchange

    Sep 22, 2021 · An EOF signal usually has nothing to do with the data being handled. The only way to "send an EOF" is to cause the reader to report that there is nothing to read in response to a request …