[clug] Please help

Stephen Jenkin sjenkin at canb.auug.org.au
Tue Jun 1 11:04:34 GMT 2004


Love ya!  Had forgotten that :-( [the redirect on the 'done']

On Tue, 1 Jun 2004, Kim Holburn wrote:
> count =0;
> while read line; do
>    echo "line:$count:($line)"
>    count=$(($count + 1))
>   done < /etc/hosts
> 
> or on one line:
>   count =0;while read line; do echo "line:$count:($line)"; 
> count=$(($count + 1)); done < /etc/hosts
> 
> -- 
> Kim Holburn
> IT Manager, Canberra Research Laboratory
> National Information and Communication Technology Australia
> Ph: +61 2 61258620 M: +61 0417820641
> Email: kim.holburn at anu.edu.au  - PGP Public Key on request
> 
> Democracy imposed from without is the severest form of tyranny.
>                            -- Lloyd Biggle, Jr. Analog, Apr 1961
> 
> 


Steve Jenkin, Unix Sys Admin
0412 786 915 (+61 412 786 915)
PO Box 48, Kippax ACT 2615, AUSTRALIA




More information about the linux mailing list