parsed.org

Tips by tag: log

Fixing an SVN Log Entry by cygnus on Jan 12, 2005 09:48 AM

If you've botched an SVN log entry (typo, etc.), you can fix it as follows:

$ echo "Here is the new, correct log message" > newlog.txt
$ svnadmin setlog myrepos newlog.txt -r 388
brokencommandslogsubversionsvn
Log Chopping by xinu on Jan 12, 2005 11:01 AM

Given a log file with a date in the first column, chop up the file into separate file:

$ awk '/^[0-9]/ {print $0 > $1".log"}' logfile.txt

If you have a string that has characters that the shell won't like, you can do a substitution on them:

$ awk '{gsub("/","_",$1); print $1 > $1".log"}' logfile.txt
awkchoplogshellsplit
RSS