Pages

lundi 23 janvier 2012

counter in for loop in csh


If we have the seq command:
foreach i (`seq 1 5 20`)
  Some actions
end
If we don't have seq, then
@ i = 1
while ($i <= 20)
  Some actions
  @ i += 5
end

Aucun commentaire:

Enregistrer un commentaire