help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to suppress unneeded output while using "save"


From: Stefan van der Walt
Subject: Re: How to suppress unneeded output while using "save"
Date: Tue, 6 Dec 2005 13:47:08 +0200
User-agent: Mutt/1.5.9i

On Tue, Dec 06, 2005 at 12:11:18PM +0100, address@hidden wrote:
> Dear ladies and gentlemen!
> I use the command "save" to save  a matrix in a data-file. That works pretty
> well.
> But octave also writes the following information in this data-file:
> 
> # Created by Octave 2.1.57, Sun Dec 04 12:37:37 2005 
> # name: speedsc1
> # type: matrix
> # rows: 30
> # columns: 337
> 
> How can I suppress this additional output?

If you remove those lines, you will not be able to load the file
again.  If you still wish to do so, simply pipe the file through `grep':

$ cat data.txt | grep -v "#" > newdata.txt

Stéfan



-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]