[SAC-HELP] SC (System Command) using an escape character (@) in a macro does not work

andreas wessel awbochum at gmail.com
Wed Mar 14 22:25:31 PDT 2007


Nancy,

Your first example works fine for me.
So maybe your SAC or awk version is outdated? I'm using sac 100.1 and gawk
3.5.1 on Linux..

However, the second example is not working for some reason.

Good luck,
Andreas

On 3/15/07, Nancy_Collins at urscorp.com <Nancy_Collins at urscorp.com> wrote:

> *sc grep 6.0_8.0 %file_vel% | awk '{print "setbb v0 " @$3}' > junk; m junk
> *
>
> As a simpler test is issued the following set of commands from within SAC:
>
> *sc grep 6.0_8.0 %file_vel%** > xx*
> * sc cat xx*
> * sc set info = `cat xx`*
> * sc echo @$info*
>
> The 2nd line, the "cat xx" does print the contents of the file xx
> correctly but the 4th line only prints a blank line, not the contents of the
> variable info.
> <http://www.iris.washington.edu/mailman/listinfo/sac-help>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.iris.washington.edu/pipermail/sac-help/attachments/20070315/e3638548/attachment.html>


More information about the sac-help mailing list