Re: Compiling SPECFUN and similar libraries



deltaquattro <deltaquattro@xxxxxxxxx> wrote:

To compile a single/double precision version of the code, all
occurences of CS/CD in the first two columns must be changed to
blanks. How can I do this automatically?...
I'd prefer to explicitly specify that CS/CD must
occur in the first two columns of a line.

The character "^" means "beginning of line" in most syntaxes for
"regular expressions". Thus, for a Unix command-line

sed "s/^CS/ /" <infile >outfile

or the same thing with CD. Many editors also do regular expressions.
Emacs does, of course. I suspect others do as well.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.