Re: Storing notes/thoughts about code in Xcode and in the code
Re: Storing notes/thoughts about code in Xcode and in the code
- Subject: Re: Storing notes/thoughts about code in Xcode and in the code
- From: Mailing list subscriptions <email@hidden>
- Date: Wed, 13 Sep 2006 13:14:07 +0200
May be of interest, a couple of functions I've stuck in my
~/.bash_profile. These pick up all references to "BUG: " or "TODO: "
in a file/files, directory/directories or both. Usage:
bugs path(s)_to_source...
todo path(s)_to_source...
Here are the functions:
# grep for "TODO" string
todo()
{
if [ $# -lt 1 ]; then
grep -R -n "TODO: " . | grep -v ".svn"
else
# loop through the args
while [ -n "$1" ]
do
grep -R -n "TODO: " "$1" | grep -v ".svn"
shift
done
fi
}
# grep for "BUG" string
bugs()
{
if [ $# -lt 1 ]; then
grep -R -n "BUG: " . | grep -v ".svn"
else
# loop through the args
while [ -n "$1" ]
do
grep -R -n "BUG: " "$1" | grep -v ".svn"
shift
done
fi
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden