<div>Dear SAC users,<br></div><div><br></div><div>Could you please help me to find out what&#39;s wrong with my file reading sequence?</div><div><br></div><div>The code snippet from sac_LHZ.test:</div><div>...</div><div>do file wild *SAC<br>
setbb vert $file<br> r %vertdo file wild *SAC<br> setbb station &amp;1,KSTNM<br> setbb otime &amp;1,O<br> evaluate to cotime %otime * (-1.0)<br> ch ALLT %cotime IZTYPE IO<br> setbb network &amp;1,KNETWK<br> setbb polezero %polezerod%%station%.%network%.PZ<br>
w %vert<br>enddo<br></div><div>...</div><div><br></div><div>The content of the current dir:</div><div>PTRP.TO.SAC   LVOF.TO.SAC   MMMR.TO.SAC</div><div><br></div><div>The errors:</div><div>&gt;do file wild *SAC<br>&gt;./tr: line 4: 26622 Segmentation fault      sac  &lt;&lt;!<br>
&gt;m sac_LHZ.test<br>&gt;quit<br>&gt;!<br><br></div><div>The script I run:</div><div>&gt;cat tr<br>sac &lt;&lt;!<br>m sac_LHZ.test<br>quit<br>!<br><br></div><div><br></div><div>If I comment out the lines &quot;do file..&quot; and &quot;enddo&quot; and read a single file like:<br>
</div><div>setbb vert PTRP.TO.SAC</div><div>the code continues to execute fine. </div><div>So the problem is about using wild with *SAC.</div><div><br></div><div>Thanks,</div><div>Igor</div>