Re: Need help with a question.
- From: Trev <trevor.dodds@xxxxxxxxx>
- Date: Sun, 29 Jun 2008 04:25:05 -0700 (PDT)
I'm only after 1 line (MAC) per server, which is value [1] the other
MAC's I do not need. Is it possible to grep MAC from the Array (Entire
File) and pass the results into a new array which I could then
print[1] to a file. This will then extract 1 line for every server
that I have an xml file for.
Maybe this will help...
Read list.txt for each server listed do
read xml file into array
find results matching MAC
print the 1st MAC address only ($server,$mac[1])
go back to list.txt and do the same for next server listed in file.
That's what I'm trying to do with this perl script.
.
- Follow-Ups:
- Re: Need help with a question.
- From: J. Gleixner
- Re: Need help with a question.
- From: Ben Morrow
- Re: Need help with a question.
- References:
- Need help with a question.
- From: Trev
- Re: Need help with a question.
- From: Ben Morrow
- Re: Need help with a question.
- From: Trev
- Re: Need help with a question.
- From: Ben Morrow
- Re: Need help with a question.
- From: Trev
- Need help with a question.
- Prev by Date: Re: How to make list of all htm file...
- Next by Date: Re: [OT] How to make list of all htm file...
- Previous by thread: Re: Need help with a question.
- Next by thread: Re: Need help with a question.
- Index(es):
Relevant Pages
|