All pastes #50156 Raw Edit

Anonymous

public text v1 · immutable
#50156 ·published 2006-04-20 14:28 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
grep 'printf([^"]*)' $f
#grep '^[[:space:]]+printf([^"]*' $f
#egrep -o '.printf([^"]' $f | while read line; do [[ ${line::1} != 's' ]] && echo $line; done
#egrep -o '.printf\([^"]*' $f
done