Re: Compiling SPECFUN and similar libraries
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Thu, 31 Jul 2008 10:06:13 -0800
deltaquattro wrote:
I often find in libraries downloaded from Netlib that some lines start
with CS or CD, like this:
CS REAL
CD DOUBLE PRECISION
(snip)
Maybe I want to be a bit too
safe :-) but since I have seen this "trick" so often in many
libraries, I was wondering if there is some standard Unix utility
which is commonly used to do this.
Most likely sed, which works especially well in batch mode.
(You could put it into a makefile, for example.)
sed s/^CS/ / < infile > outfile
the ^ allows only matches at the beginning of the line.
-- glen
.
- References:
- Compiling SPECFUN and similar libraries
- From: deltaquattro
- Compiling SPECFUN and similar libraries
- Prev by Date: Re: Strange behavior using a module which uses another module
- Next by Date: Re: Strange behavior using a module which uses another module
- Previous by thread: Re: Compiling SPECFUN and similar libraries
- Next by thread: Strange behavior using a module which uses another module
- Index(es):
Relevant Pages
|