Re: shell script kommands

2001-09-19 Thread Herbert Xu
MaD dUCK <[EMAIL PROTECTED]> wrote: > also sprach Timeboy (on Thu, 13 Sep 2001 01:41:08PM +0200): >> Is there a possibility to do this with a bash script? > #!/bin/bash > cnt=0 > while read i; do > var[cnt]=$i > cnt=`expr $cnt + 1` > done > echo "there are $i object(s) in array var[]." or yo

Re: shell script kommands

2001-09-13 Thread MaD dUCK
also sprach Timeboy (on Thu, 13 Sep 2001 01:41:08PM +0200): > Is there a possibility to do this with a bash script? #!/bin/bash cnt=0 while read i; do var[cnt]=$i cnt=`expr $cnt + 1` done echo "there are $i object(s) in array var[]." martin; (greetings from the heart of the su