Here’s an Awk script that will give you the output format you mentioned:
/^ {4}.+:$/ {
sub(/^ {4}/, "", $0)
last_application = $0
}
/^ +Version:/ {
sub(/^ +Version: /, "", $0)
print last_application " " $0
}
If you save it as script.awk
you can run
awk -f script.awk log.txt
to get output like
MacTubes: 3.1.5
Boom: 1.6
World of Goo: 1.30
VZAccess Manager: 4.3.0
This has been tested with the /usr/bin/awk
of OS X 10.9.0.