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

Re: shell script kommands



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 sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
>



Reply to: