Martin Rubey <[EMAIL PROTECTED]> writes:
> I think the following, saved as executable in $AXIOM/lib
sorry, this should read: $AXIOM/lib/SPADEDIT
> does what you want. Should be easy to modify to work with pamphlets instead,
> I guess.
>
> Martin
>
> PS: I know very little about bash, you are welcome to rewrite it as you like
> it
>
> #! /bin/bash
>
> ## get the filename (replace spad by spad.pamphlet to work with pamphlets
> ## instead.
>
> f=$(basename $1 .spad)
>
> ## get the file and the line number. We can assume that grep produces only one
> ## answer, I guess
>
> h=$(grep -n ")abb.* $f " $AXIOM/src/algebra/*)
>
> ## get the filename
> name=${h%%:*}
>
> ## get the number
> number1=${h#*:}
>
> number=${number1%:*}
>
> ## start emacs
>
> emacs +$number $name
_______________________________________________
Axiom-mail mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/axiom-mail