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

Re: How to batch-process data files



Joerg Johannes <liste_joerg@gmx.de> writes:

> I thought that the text and the dashed line would confuse gnuplot, but 
> they are just ignored. Thanks, Nick, and sorry for the noise...
> (Anyway, it would still be interesting how to just comment out the first 
> six lines of text...)

I'd use "sed -e '1,6s/^/#/'" -- "on lines one through six, replace
start-of-line with a pound sign".  You'd need to go through the normal
sed contortions to make it replace the original files, though.  You
could also use "sed -e 1,6d" or "tail +7" to discard the first six
lines.

-- 
David Maze         dmaze@debian.org      http://people.debian.org/~dmaze/
"Theoretical politics is interesting.  Politicking should be illegal."
	-- Abra Mitchell



Reply to: