Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a list of servers with their status in a file. I need to get the last occurence of each of the servers in the file.
The server names are VISHU, VISHU2, JITHU, JITHU2, MADHU, MADHU2
The file format is :
VISHU: server running 12/3/99
VISHU2: server down 12/3/99
VISHU :server running 3/12/00
JITHU : server down 3/12/00
JITHU2: server running 4/12/00
......
The file format is :
VISHU: server running 12/3/99
VISHU2: server down 12/3/99
VISHU :server running 3/12/00
JITHU : server down 3/12/00
JITHU2: server running 4/12/00
......
I need to find the last occurences of each of the servers.
Originally posted as a Categorized Question.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do I get the last occurrance of a word (or words) in a file?
by merlyn (Sage) on May 11, 2000 at 02:13 UTC | |
Re: How do I get the last occurrence of a word (or words) in a file?
by mslattery (Initiate) on Apr 19, 2002 at 18:50 UTC |
Back to
Seekers of Perl Wisdom