January 11th, 2009
The Archives
-
01.11.09Here documentsA here document is a way to define a literal string preserving the space, new line characters, etc. It is used with the << redirection operator and it needs a delimiter token. Let's see an example: $ cat << _END >file > This is > a multiline > string > _END $ cat file This is a multiline string I used _END as delimiter, but you can use whatever you want (endOfDocument, _EOF_, etc)