sed: linewraps and / and * characters

Rob Cunningham rkc at xn.ll.mit.edu
Wed Dec 12 08:14:26 AEST 1990


Here`s what I'm trying to do:

convert input that looks like this:

/* 
	Some Text Here
*/
8888.999

/****
...

To input that looks like this
/* 
	Some Text Here
*/
4.3

/****


	I know sed should be able to do this, but I can't figure out

		1. How to do carriage returns (\n doesn't work as I'd expect).
	and 	2. How to match characters like / and *


	Can a sed guru show me the light?


		Thanks,
			-Rob

PS. Apologies if this gets posted twice--we're having netnews problems.



More information about the Comp.unix.questions mailing list