Section of a source code file that is treated as if it were a separate file
In computing, a here document (here-document, here-text, heredoc, hereis, here-string or here-script) is a file literal or input stream literal: it is a section of a source code file that is treated as if it were a separate file. The term is also used for a form of multiline string literals that use similar syntax, preserving line breaks and other whitespace (including indentation) in the text.
Here documents originate in the Unix shell,[1] and are found in the Bourne shell (sh), C shell (csh),[2] tcsh (tcsh),[3] KornShell (ksh), Bourne Again Shell (bash), and Z shell (zsh), among others. Here document-style string literals are found in various high-level languages, notably the Perl programming language (syntax inspired by Unix shell) and languages influenced by Perl, such as PHP and Ruby. JavaScript also supports this functionality via template literals, a feature added in its 6th revision (ES6). Other high-level languages such as Python, Julia and Tcl have other facilities for multiline strings.
Here documents can be treated either as files or strings. Some shells treat them as a format string literal, allowing variable substitution and command substitution inside the literal.
^Cite error: The named reference posix was invoked but never defined (see the help page).
In computing, a heredocument (here-document, here-text, heredoc, hereis, here-string or here-script) is a file literal or input stream literal: it is...
perl. A heredocument starts by describing what the end sequence will be and continues until that sequence is seen at the start of a new line. Here is an...
A document management system (DMS) is usually a computerized system used to store, share, track and manage files or documents. Some systems include history...
sometimes spelled HērēHeredocumentHere and Now (disambiguation) Metaphysics of presence All pages with titles beginning with Here This disambiguation...
An identity document (also called ID or colloquially as papers) is any document that may be used to prove a person's identity. If issued in a small, standard...
as if they were external resources. It is a form of file literal or heredocument. This technique allows normally separate elements such as images and...
disambiguation page lists articles associated with the title Document examiner. If an internal link led you here, you may wish to change the link to point directly...
The Q source (also called The Sayings Gospel, Q Gospel, Q document(s), or Q; from German: Quelle, meaning "source") is a written collection of primarily...
server systems. All Unix shells provide filename wildcarding, piping, heredocuments, command substitution, variables and control structures for condition-testing...
transport document used for air freight Bill of Lading, a transport document for sea freight CMR (transport document), a transport document for road freight...
A document type definition (DTD) is a specification file that contains set of markup declarations that define a document type for an SGML-family markup...
This is a list of identity document policies by country. A national identity document is an identity card with a photo, usable as an identity card at least...
g., main::DATA) and DATA in Ruby. This can be considered a form of heredocument (a file literal). Segmentation (memory) Segmentation fault Linker (computing)...
page lists articles associated with the title Document preparation system. If an internal link led you here, you may wish to change the link to point directly...
2017 Palestinian political and military organization Hamas unveiled A Document of General Principles and Policies (وثيقة المبادئ والسياسات العامة لحركة...
disambiguation page lists articles associated with the title Document of Identity. If an internal link led you here, you may wish to change the link to point directly...
g., for generating a Web page using HTML, JavaScript, and SQL in a heredocument). The use of Perl variable interpolation to programmatically customize...
The Killian documents controversy (also referred to as Memogate or Rathergate) involved six documents containing allegations about President George W...
qq(<a href="$url">$text</a>); Heredocuments are especially well suited for multi-line strings; however, Perl heredocuments hadn't allowed for proper indentation...
may be necessary Command substitution using backquotes: `command`. Heredocuments using << to embed a block of input text within a script. for ~ do ~...
holds former President Trump in civil contempt for failing to comply with document subpoenas from New York attorney general". CNN. Retrieved April 26, 2022...