XSI XNA pipeline - 12 lines of code
this is a 12 liner in c#:

(left and right clicking not counted)
this is a 12 liner in c#:

(left and right clicking not counted)
sometimes I need to grep for NEEDLE in all files.
Here is the short script:
#!/bin/sh
# implements:
# grep -r -n -H -B 1 -A 1 NEEDLE --exclude="*.svn*" --exclude=EXCLUDEPATTERN .
NAME=`basename $0`
function usage() {
echo $NAME NEEDLE [EXCLUDEPATTERN]
}
if [ $2 ]; then
grep -r -n -H -B 1 -A 1 $1 --exclude="*.svn*" --exclude=$2 .
elif [ $1 ]; then
grep -r -n -H -B 1 -A 1 $1 --exclude="*.svn*" .
else
usage
fi