Here Document

Noun · Development

Definitions

  1. A type of string literal in shell scripting and several programming languages that preserves line breaks and allows embedding of multi-line text inline, delimited by a user-chosen marker (typically <<EOF...EOF).

    In plain English: A way to include a big block of text directly in your script without escaping every quote and newline — you mark where it starts and ends with a special word.

    Example: "I used a heredoc to inline the entire SQL migration right in the bash script."

Related Terms