On 11/29/06, Dan Uscatu <[EMAIL PROTECTED]> wrote:
se da urmatorul program:

export a=0

cat file |
while read line
  do
    a=$(($a+1))
    echo $a
  done

echo $a

intrebare: de ce la sfirsit a este tot 0 ?

Biblia mea pentru probleme de bash e http://www.tldp.org/LDP/abs/html/
. Sper sa-ti fie si tie la fel de de-folos.

--
www.flo.ro

_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui