stumped... .

Gary Kline kline at thought.org
Sat Jan 17 19:09:15 PST 2004


	I've written scores of scripts to hack text files, but this
	one has me dead in the water.

	How can I delete all lines from /^PATTERN to EOF??

	ed - <<foo

	/^PATTERN
	(.,$)d
	w
	q
	foo

	or anything else I've tried doesn't do it.  I could do it in
	C/C++,but c'mon... !  Any solutions in sed, perl, or ed/ex?

	tia, everybody,

	gary

-- 
   Gary Kline     kline at thought.org   www.thought.org     Public service Unix



More information about the freebsd-questions mailing list