Thanks,
I found a solution with replace command, but may I ask why is it
necessary
to print this things into a file, when one only wants to get the
value of a variable printed out? I know that the file was created
by Octave 2.1.64 on Sun, Mar 06 etc, that the variable name is T
and is a scalar. This seems (to me at least) a very weird feature.
Thanks again,
Gorazd
Paul Kienzle wrote:
Simple solution:
grep -v ^# filename
This fails, e.g., if you save something like x="# matrix".
If you know the number of header lines (e.g., for matrices or
strings):
tail +6 filename
- Paul
On Mar 6, 2005, at 2:24 PM, Gorazd Brumen wrote:
Hi,
How do I get rid of the following 3 lines that precede
the variable value (1 in this case) when I use save in octave?
# Created by Octave 2.1.64, Sun Mar 06 14:17:52 2005 EST
<address@hidden>
# name: T
# type: scalar
1
Gorazd
--
Gorazd Brumen
Mail: address@hidden
WWW: http://valjhun.fmf.uni-lj.si/~brumen
PGP: Key at http://pgp.mit.edu, ID BCC93240
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
--
Gorazd Brumen
Mail: address@hidden
WWW: http://valjhun.fmf.uni-lj.si/~brumen
PGP: Key at http://pgp.mit.edu, ID BCC93240
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------