I am trying to find a command to strip out comments in C++ source files. I suspect it would be sed, but I don't know how to use it yet and don't have time to learn it right now. Any sed wizard care to spare a few seconds?
I need to strip out both "//" and "/* ... */" style comments. If possible, "#if 0/#endif" ones, too.