bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strange behavior


From: Paul Jarc
Subject: Re: strange behavior
Date: Fri, 07 Jun 2002 11:33:59 -0400
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i686-pc-linux-gnu)

"Ruud Baart" <R.J.Baart@Prompt.nl> wrote:
> let COUNTER=0
> echo -e "line a\nline b\nline c"|while read LINE
> do
>    let COUNTER++
>    echo "$COUNTER: $LINE"
> done
> echo "\$COUNTER=$COUNTER"

See the bash FAQ, entry E4.


paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]