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

shell script kommands

2001-09-13 Thread Timeboy
Dear Debian Users! Is there a possibility to do this with a bash script? I like to analyze a file like one of this example: line1 line2 line3 line4 line5 line6 line7 Each line of this file i like to put into one variable, so i have 7 variables witch contains ever one line of this file. Cause