(Elementary user)
I have a very large log file that contains thousand of lines and I would like to search for a specific pattern in this log and output this to another file.
I would like to search for this pattern: */@*
A line entry in the log would look like this:
May 4 11:10:46.17 recv [19380] 4BB4CBA84 < 6>: 'A04BB4CBA84' message From:'<user@somedomain.com>' To:'<jon.doe/@anotherdomain.com>' Size: 14072
Is there a way of:
1) searching the log file,
2) looking for matches
3) putting those lines containing my match in another file
Best regards
I have a very large log file that contains thousand of lines and I would like to search for a specific pattern in this log and output this to another file.
I would like to search for this pattern: */@*
A line entry in the log would look like this:
May 4 11:10:46.17 recv [19380] 4BB4CBA84 < 6>: 'A04BB4CBA84' message From:'<user@somedomain.com>' To:'<jon.doe/@anotherdomain.com>' Size: 14072
Is there a way of:
1) searching the log file,
2) looking for matches
3) putting those lines containing my match in another file
Best regards