[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to save ascii files without header information
From: |
Francesco Potorti` |
Subject: |
Re: How to save ascii files without header information |
Date: |
Wed, 16 Apr 2003 19:21:50 +0200 |
> perl -ne 'print unless /^#/' filename.sav
Perl is definitely overkill:
grep -v "^#" filename.sav
If you want to change the file in place, you can use ed:
(echo "g/^#/d"; echo wq) | ed filename.sav
Sorry, I couldn't resist :-)
--
Francesco Potortì (ricercatore) Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR Fax: +39 050 313 8091
via G. Moruzzi 1, I-56124 Pisa Email: address@hidden
Web: http://fly.cnuce.cnr.it/ Key: fly.cnuce.cnr.it/public.key
-------------------------------------------------------------
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
-------------------------------------------------------------