回答編集履歴
1
修正
test
CHANGED
@@ -26,6 +26,8 @@
|
|
26
26
|
|
27
27
|
```
|
28
28
|
|
29
|
+
perlでの抽出例
|
30
|
+
|
29
31
|
cat maillog | perl -ne '{if(/postfix.*: (\w+): ((from|to)=\S+>),? /){$k{$1}{$3}=$2;}}END{foreach(sort keys %k){print "queueid=$_ $k{$_}{'from'} $k{$_}{'to'}\n";}}'
|
30
32
|
|
31
33
|
queueid=5120C546D2E1 from=<bounce-000609027-000008849b84a6@fc5219.cuenote.jp> to=<recruit@example.com>
|
@@ -42,4 +44,4 @@
|
|
42
44
|
|
43
45
|
|
44
46
|
|
45
|
-
任意の文字列
|
47
|
+
任意の文字列をキーとした集計には必須ですね。
|