title: Shell script loop, increment by hex
body: <pre><code>for num in {3758145536..3758149632..4}
  do
      echo "obase=16; $num" | hexnum
      peek -lt $hexnum &gt; "/luascript/dumpfileA"
  done
  </code></pre>
  
  <p>What I want to do is, iterate from address0xe000000 to 0xe0001000
  Use peek to peek these section memory and write result to file.</p>
  
  <p>SO I use Deceimal to do increment job. Then convert to Hex.</p>
  
  <p>Maybe ,can I increment by Hex directly?</p>
  
  <p>But this is not working .
  Need help
  Thank you!</p>