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
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
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
3 matches
Mail list logo