home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!mips!bridge2!patience!div
- From: div@NAD.3Com.COM (Dinesh Venkatachalam x5498)
- Newsgroups: comp.unix.questions
- Subject: Good way to strip K&R Style comments
- Message-ID: <1249@bridge2.NSD.3Com.COM>
- Date: 28 Jul 92 22:04:48 GMT
- Sender: news@bridge2.NSD.3Com.COM
- Reply-To: div@NAD.3Com.COM
- Organization: 3Com Corp
- Lines: 15
- Nntp-Posting-Host: patience.nad.3com.com
-
-
- I am looking for any way ( using awk, sed, perl, lex ) to strip K&R style
- comments.
- /* Start of comment till this
- and on the next line */
-
- The comments can span multiple lines, and I want this script to process the
- input file and strip out everything including and between the /* and */
-
- I would prefer the Regular-expression syntax in lex is such a solution exists
-
- Thanks.
-
- ...Dinesh
-
-