title: Can we call SAC(Seismic Analysis Code) within AWK?
body: <p>I have written a code in the shell...This is a part of my code:-</p>
  <pre><code>for I in *.SAC
  
  do
  
  SAC&lt;&lt;EOF
  
  LH Delta
  
  q
  
  EOF
  
  p=echo $Delta| awk '{print $1/20}'
  
  r= saclhdr -B $i
  
  echo $p $r
  
  done
  </code></pre>
  <p>Can I write this code entirely within AWK???</p>
  <p>I want to do that; because for my work, running a shell script is taking much more time than AWK.</p>
  <p>Please help me if you can</p>