Sed wins! It IS possible to strip C comments with 1 sed command!

Brian V. Smith envbvs at epb2.lbl.gov
Wed Mar 22 04:35:26 AEST 1989


> leo at philmds.UUCP (Leo de Wit) writes:
> \Can it be proven to be impossible (that is, deleting the comments
> \with one sed command - multi-line comments not considered) ?
> 

THIS must be the method EVERYONE uses to strip comments from every C program
I have ever seen in the public domain or from Berkeley/DEC/Sun/etc...

(flame-suit ready)

There must be either a conspiracy against, or a primeval fear of including
comments in C programs.



More information about the Comp.unix.wizards mailing list