title: read many lines with specific position
body: <p>Thank you for the time you soent reading it, maybe it is a nooby question 
  I have a file of 10081 lines, this is an example of the file (a nordic seismic bulletin):</p>
  
  <pre><code> 2016  1 8 0921 21.5 L -22.382 -67.835 148.9  OSC 18 0.3 4.7LOSC                 1
   2016  1 8 1515 43.7 L -20.762 -67.475 188.7  OSC 16 .30 3.7LOSC                 1
   2016  1 9 0529 35.9 L -18.811 -67.278 235.9  OSC 16 0.5 3.9LOSC                 1
   2016  110  313 55.6 L -22.032 -67.375 172.0  OSC 14 .30 3.0LOSC                 1
   2016  110 1021 36.5 L -16.923 -66.668  35.0  OSC 16 0.4 4.5LOSC                 1
  </code></pre>
  
  <p>I tried the following code to extract some information from the file and save them in a separate file.</p>
  
  <pre><code>awk 'NR==1 {print substr($0,24,7), substr($0,32,7), substr($0,40,5)}' select.inp &gt; lat_lon_depth.xyz
  </code></pre>
  
  <p><code>substr($0,24,7)</code> means that I take from the 24th position 7 characters which is 
  the latitude information (-22.382) and the same for the others (longitude from 32th place with 7 characters and depth on 4oth position with 5 characters).</p>
  
  <p>So the question, is possible to go trought all the lines of file and have all latitude, longitude and depth. 
  Thank you for the time</p>