/ Published in: Bash

usage: sgrep foo svn://my-svn-server/trunk/my-file.txt
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function sgrep() { for r in `svn log $2 | perl -n -e 'print "$1\n" if m/^r(\d*)\s+/'`; do echo "Revision $r:"; svn cat -r $r $2 | grep $1; done; }
Comments
