[SAC-HELP] select waveform with sac

shenxzh at gmail.com shenxzh at gmail.com
Wed Nov 9 20:15:00 PST 2011


Hello everyone,
I met a question to select waveform with sac. I hope I can check the waveform and save some good data in a folder or put bad data in another folder. The following is the part of my shell script.
for fil in *.SAC
do
sac <<ENDD
qdp off
ygrid on
r AA.SAC
p1
setbb resp (REPLY "Enter t to trash the file ")
if %resp eq "t" then 
sc mv AA.SAC Trash
endif
q
ENDD
done
After excuting the shell script, there was no any pause and just put the *.SAC into the Trash folder. What' s problem in my script and how to solve it.
Thank you.
Cheers, Xuzhang

2011-11-10 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.iris.washington.edu/pipermail/sac-help/attachments/20111110/18c77d68/attachment.html>


More information about the sac-help mailing list