J'utilise un petit fichier de définition test.h :

/*
 * Big story here
 * my life
 */
// one line
#define HEHE 1

/* includes */
#include "blah"
#include "foo" // end line comment

#include /* weird comment */ "pouet"
int woop /* to see */
/* let's continue with weird comments */ void sigpipe_handle(int);

/*-------------
  bloh
---------------*/
int main(int argc, char **argv);
int parseCommandLine(int argc, char* argv[]);

Ce qui donne, une fois passé par sed :

$ sed -nf ccmtstrip.sed test.h
#define HEHE 1
#include "blah"
#include "foo"
#include "pouet"
int woop
void sigpipe_handle(int);
int main(int argc, char **argv);
int parseCommandLine(int argc, char* argv[]);