Anonymous
public text v1 · immutablereally ugly, but works:
cat input.txt | python -c "import sys,re; r = re.compile(r'ObjectName: (\w+)\n.*?IPaddress: ([0-9.]+)',re.S); print '\n'.join(['%s - %s' % data for data in r.findall(sys.stdin.read())])"
(all in one line, input being the text file)