Reversing a file?

Dr. T. Andrews tanner at cdis-1.uucp
Fri Oct 6 01:33:47 AEST 1989


itkin at mrspoc.Transact.COM (Steven M. List) writes:
) 	echo "g/./.m0\nw $OUTPUT\nq" | ex $INPUT
) 	:g/./.m0
Very clever, but does not deal effectively with zero-lentgh lines.
In "vi", try the following (similar change for echo command above)
	:g/^/.m0
-- 
He cuts half of passenger service | {bpa,uunet}!cdin-1!cdis-1!tanner
Mulroney: "cold froze our brains" | {attctc gatech!uflorida}!ki4pv!cdis-1!tanner



More information about the Comp.unix.questions mailing list