| Greg Schiedler 2005-03-30, 3:56 am |
| OK I need to parse a rather large logfile and delete specific lines.
The file is called logfile and is simply a large text file.
Is there some simple way to read in the file and delete specific lines
that contain DSL:user@domain.com and the rerun the process to delete
user2@domain.com -or-
Delete all lines that contain: "DSL:" and the text :No such user"
Greg
Sample logfile....
Wed Jan 5 05:35:57 2005: DSL:user@domain.com::POP::No such user
.....
.....
Sat Mar 26 08:54:04 2005: DSL:user2@domain.com::POP::No such user
Sat Mar 26 08:54:10 2005: DSL:user2@domain.com::POP::No such user
Sat Mar 26 08:54:16 2005: DSL:user2@domain.com::POP::No such user
Sat Mar 26 08:54:23 2005: DSL:user2@domain.com::POP::No such user
Sat Mar 26 08:54:29 2005: DSL:user2@domain.com::POP::No such user
Sat Mar 26 08:54:35 2005: DSL:user2@domain.com::POP::No such user
....
....
|