VI ~/.BASHRC, add a function
1 Svnlog () {2SVN log"[email protected]"|awk-F < (Cat<<EOF3#!/usr/bin/awk-F4 5# Convert the"SVN log"Output into a one liner format,whichis easier togrep6# or useinchScripts. Pipe"SVN log"Into this script7 8# when we get a line this starts with a revision number, put the datainchvariables9/^r[0-9]+/ {Tenrev=\$1 Oneuser=\$3 A Date=\$5 - Time=\$6 -lines= - the } - -# anything that isn't A revision line, a separator line or an empty line - # would be a part of the commit message. Concatenate these into the comment variable +! (/^r[0-9+]/ || /^-+$/ || /^$/) { -Comment = Comment \$0 + } A at # with every separator line, output what we stored before and reset the comment variable -# to skip the first line we also checkifWe've already stored a revision -/^-+$/&&Rev { -Print Rev" | "User" | " Date " | " Time " | "Comment -Comment ="" - } in EOF - ) to}
The awk Regular expression reference is: https://gist.github.com/plexus/1485222
How to use: Svnlog-l 10
〖LINUX〗SVN log shows only one row of methods per log record