bash for loop

Alex apapadop at brad.ac.uk
Sat Mar 10 20:08:01 EET 2001


Erwthsh gia bash:

8elw na kanw, px, untar 10 tar files pou onomazontai fileN.tar

anti gia to ekshs aparadekto (pou einai axrhsto gia megala plh8h):

for i in 1 2 3 4 5 6 7 8 9 10
do
tar xvf file$i.tar
done

pws mporw na exw ena pio chic iteration loop sto for statement?

kati tou styl for(i=0;i<10;i++) ths C++ psaxnw

TIA

Alexandros



More information about the Linux-greek-users mailing list