Skip to content

Instantly share code, notes, and snippets.

@fritz0705
Created October 15, 2010 21:37
Show Gist options
  • Save fritz0705/628989 to your computer and use it in GitHub Desktop.
Save fritz0705/628989 to your computer and use it in GitHub Desktop.
Script to display all TODO's in $PATH
#!/bin/bash
# List TODO notices in directory
Files=`find`
echo "TODO List"
echo
for i in $Files
do
if [ "`echo $i | grep '.git'`" != "" ]
then
continue
fi
Matches=`grep -n 'TODO' $i`
if [ "$Matches" = "" ]
then
continue
fi
echo $i
echo $Matches
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment