Skip to content

Instantly share code, notes, and snippets.

@sumpygump
Created June 20, 2012 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sumpygump/2960935 to your computer and use it in GitHub Desktop.
Save sumpygump/2960935 to your computer and use it in GitHub Desktop.
codereview bash script
#!/bin/bash
if [ -z "$1" -o -z "$2" ]; then
echo "usage: $0 <repository> <username>"
exit
fi
REPO=$1
USER=$2
PAST=`date +"%Y-%m-%d" -d "-6 months"`
NOW=`date +"%Y-%m-%d"`
svn log -v "$REPO" -r {$PAST}:{$NOW} | sed -n '/'$USER'/,/-----$/ p'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment