[ILUG] strip comments utility

Sean McGrath smcgrath at maths.tcd.ie
Fri Dec 8 14:55:21 GMT 2000


}In reply to Charles Sharp's flatulent wordings,
}> > > perl -n -e 'print	unless (/\/\*/ .. /\*\//)' filename
}> > >
}> > > should do	fine
}

  a similar thread came up on the perl monks pages:
http://www.perlmonks.org/index.pl?node_id=45438&lastnode_id=45549

  theres a few lines there to strip c comments from c files, but the guy
   found a bug in the script..  Have a gawk.


Sean.
.




More information about the ILUG mailing list