in reply to Searching log file by %%%
#!/usr/bin/perl -wl $/ = "%%%"; while (<DATA>) { chomp; print if /Email/; # Change to suit } __DATA__ Name: name Phone: number Fax: number Address: address Email: email address Info: information %%% Name: name Phone: number Fax: number Address: address Email: email address Info: information
--
John.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Searching log file by %%%
by Anonymous Monk on May 19, 2004 at 02:48 UTC | |
by CountZero (Bishop) on May 19, 2004 at 05:56 UTC |