blob: 6e7e0aba2dff51b573e403a9029e8c254c67adb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
This script, by Viktor Dukhovni, untangles a Postfix logfile and
groups the records one "session" at a time based on queue ID and
process ID information.
Records from different sessions are separated by an empty line.
Such text is easy to process with $/="" in perl, or RS="" in awk.
Usage:
perl collate.pl file...
It reads standard input when no file is specified.
|