49 words — 1 minutes read

doing some nasty stuff with java and logging

Remove all .debug stuff in existing java files:

a handy SED reference

` #!/usr/bin/sh

find . -type f -name ‘*.java’ -print | while read i do

echo $i

echo “” >> $i sed “s/^..debug(.)\s;.$/{;}/” $i > $i.tmp sed “s/(.*.isDebugEnabled()/(false/” $i.tmp > $i.tmp2 cp $i.tmp2 $i done `

Don’t ask.

Jens-Christian Fischer

Maker. Musician