Mailinglist Archive: opensuse (4237 mails)
| < Previous | Next > |
Re: [SLE] Pullin' my hair out... arrrgh
- From: Anders Johansson <andjoh@xxxxxxxxxx>
- Date: Wed, 4 Aug 2004 20:50:06 +0200
- Message-id: <200408042050.06476.andjoh@xxxxxxxxxx>
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 \
> 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 \
| < Previous | Next > |