All pastes #50164 Raw Edit

Someone

public text v1 · immutable
#50164 ·published 2006-04-20 15:20 UTC
rendered paste body
#!/bin/sh

if [ "x$1" = "x" ] ; then
 echo "usage: $0 <dir>"
 exit;
fi

find $1 > .wtf

cat .wtf | while read f
do
   x=$(grep 'printf([^"]*)' $f)
   if [ "a$x" != "a" ] ; then
     echo "FILE: $f"
     echo "CODE:"
     echo $x
     echo "";
     echo "--------------"
     echo ""
   fi
done