Até onde eu sei, não há comando interno para isso, mas você poderia simplesmente usar grep
e awk
:
grep Completed /var/log/exim4/mainlog | awk '{print $3}'
Qual deve virar isso:
2011-04-17 18:03:58 1QBUS6-0004Gc-1p Completed
2011-04-17 18:04:19 1QBUSQ-0004Lp-LT Completed
2011-04-17 18:05:16 1QBUTM-0004hP-Da Completed
2011-04-17 18:05:33 1QBUTd-0004jB-1M Completed
2011-04-17 18:08:23 1QBUWN-00052T-2E Completed
2011-04-17 18:09:39 1QBUXb-0005Co-Gc Completed
2011-04-17 18:09:51 1QBUXn-0005G0-6L Completed
2011-04-17 18:10:30 1QBUYQ-0005Jo-47 Completed
... para isso:
1QBUS6-0004Gc-1p
1QBUSQ-0004Lp-LT
1QBUTM-0004hP-Da
1QBUTd-0004jB-1M
1QBUWN-00052T-2E
1QBUXb-0005Co-Gc
1QBUXn-0005G0-6L
1QBUYQ-0005Jo-47