#! /bin/bash
# [[todos.sh]] script to make a list of files containing string "todo"
# Authors:
# FR, radeff@akademia.ch
# History
# 2009/05/05 16:07: FR, created
#########
clear
echo "Searching todos within current dir: " `pwd`
find . -type f -exec grep -l todo {} \; > junk
grep -v ".svn/" junk > t && mv t junk
cat junk | while read i
do
echo "---"
echo $i
grep -n todo $i
done
rm junk