On Wednesday 04 August 2004 20:43, Dylan wrote:
On Wednesday 04 Aug 2004 19:33 pm, Randall R Schulz wrote:
Danny,
On Wednesday 04 August 2004 11:15, Danny Sauer wrote:
<SNIP>
--Danny, who also dislikes here documents, in general
Here documents are cool, but they make scripts harder to read and understand, so I avoid using them unless they're really necessary.
What are 'here documents'?
The format I used in my mail. Insanely useful. Basically, you do $command << SOMETHING line1 line2 SOMETHING and $command will use the lines between the first line and the line with SOMETHING as standard input. Those lines are called a here document. It's described in "man bash". Extremely useful if you have multi-line commands for something and don't want to litter your script with a thousand "echo"s or end each line with a \