Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script to extract text from a log file based on start/end position

Status
Not open for further replies.

SteveJR

Programmer
Aug 13, 2001
72
GB
Hi,

Would someone be able to supply a simple PERL script that can parse a log file and extract or print out text found between a start and end point supplied by the user so basically any lines logged after start time and before end time.?

The start/end points would be a timestamp in the format of yyyy-mm-dd hh:mm:ss.

Many thanks in advance,

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top