Created
March 16, 2011 09:21
-
-
Save ajitam/872225 to your computer and use it in GitHub Desktop.
Bash script to show you daily commits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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