Index: [thread] [date] [subject] [author]
  From: Luke Oliver Palmer <lop@acpub.duke.edu>
  To  : 
  Date: Wed, 03 Feb 1999 00:07:46 -0500

cleanup trick

thinking oh, i won't need that many debugging statements, i didn't use
rcd's trick with defining a DEBUGOUT function in the preprocessor
directives.  before i knew it i ended up with half a page of cerr stuff
every time i type in 2 + 2.  along the way i came up with a trick for
getting rid of these very quickly....

i use the convention that all debugging statements use cerr<<.  if you
don't, you might not want to try this.  to get rid of all my cerr
statements, i did:

grep -v "cerr<<" infile.cc > outfile.cc

this deletes all the lines that have cerr<< in them.  if you're not sure
and you want to see what will get removed before you do it, do

grep "cerr<<" infile.cc

good luck....
-luke



Index: [thread] [date] [subject] [author]