Skip to content

Instantly share code, notes, and snippets.

@ajitam
Created March 16, 2011 09:21
Show Gist options
  • Save ajitam/872225 to your computer and use it in GitHub Desktop.
Save ajitam/872225 to your computer and use it in GitHub Desktop.
Bash script to show you daily commits
#!/bin/bash
#Go to a folder
cd /home/matija/portal
echo Your SVN logs for $3.$2.$1
echo
echo --------------- Portal -----------------
/usr/bin/svn log -r '{'$1'-'$2'-'$3'}:{'$1'-'$2'-'$(($3+1))'}' | sed -n '/matija/ {; n; ; n; p;}';
echo
#Go to another folder
cd /home/matija/webapp
echo --------------- Webapp -----------------
/usr/bin/svn log -r '{'$1'-'$2'-'$3'}:{'$1'-'$2'-'$(($3+1))'}' | sed -n '/matija/ {; n; ; n; p;}';
echo
echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment