<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><i>&nbsp;</i>I am trying to compute spectral ratios of between a hefty number of files and I try it like this:<div><br></div><div>read /path_to_files/filenames*.sac</div><div>fft</div><div>writesp over</div><div><br></div><div>read /path_to_other_files/otherfiles*.sac</div><div>fft</div><div>writesp over</div><div><br></div><div>To this point every thing works well and I can even view with plotsp and see what I am doing.</div><div><br></div><div>I now want to&nbsp;divide&nbsp;filenames by other_files hence get the spectral ratio between them.</div><div><br></div><div>the * stands for sequential numbers and the number of file is the same in the nominator and denominator.</div><div><br></div><div>how do you suggest I go at this?</div></body></html>