Thursday, November 3, 2011

some command line shortcuts

dig for missed dependencies

egrep -r '^\s*(use|with|extends)\s+' * \
| awk '{print $2}' | awk '{sub(/\;/, ""); print}' \
| sort -u


jumpstart a "00-load.t"

egrep -r '^\s*package ' * \
| awk '{ print $2}' \
| awk '{sub(/\;/, ""); print "use_ok(\""$1"\")"}' \
| sort -u


quick syntax checks

for i in `find ./  | egrep '\.(pm|pl|cgi|t)$'`; do perl -wc $i; done