$index=0; $start_addr=0x50000000 for(i=$index; $i<256; $i++) { $addr=sprintf("%x",($start_addr=$start_addr + 4)); print "addr:$addr\n"; }