Hi there,<br><br>for the first problem I would try to write a script that edits just one file at a time. Then one could run that script in a for loop for all files..<br><br>something like <br>for j in *.sac; do<br>&quot;script&quot; $j
<br>done<br><br>or something similar..<br><br><br>ps: can you please not send 2.5 kilometers of old text with your mails :)<br><br><div><span class="gmail_quote">On 11/30/06, <b class="gmail_sendername">Januka Attanayake</b>
 &lt;<a href="mailto:jattanayake@gmail.com">jattanayake@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>
Greetings,</div>
<div>&nbsp;</div>
<div>I have 3 questions today !</div>
<div>&nbsp;</div>
<div>1) I have the following piece of script that I use to mark t0 on the seismogram</div>
<div>&nbsp;</div>
<div>r 1 2 3</div>
<div>ppk&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ---&gt;(I mark t0 using the cursor)</div>
<div>setbb t0 &amp;1, t0 &amp;2, t0 &amp;3</div>
<div>r 1 2 3</div>
<div>ch t0 %t0</div>
<div>w over</div>
<div>&nbsp;</div>
<div>say I have 500 seismograms, how do I replace&nbsp;&quot; setbb t0 &amp;1, t0 &amp;2, t0 &amp;3 &quot; so that I can mark&nbsp;t0&nbsp;&nbsp;all together?</div>
<div>&nbsp;</div>
<div>2) If I have again a bunch of seismograms that I need to seperate according to distance&nbsp; how do I do that? is there a script that I can use to do this?</div>
<div>&nbsp;</div>
<div>3) How can I make an ASCII file (2-column, time and amplitude) from a sac file that I down load from IRIS?</div>
<div>&nbsp;</div>
<div>Thank you ..!<br>&nbsp;</div>
<div>Januka. <br></div></blockquote></div><br>