avinashsuratkal wrote:
>>>>
I have the following log and my requirement is to capture the block
from one "-->" symbol to another. and put it in other file, using
perl.
>>>>
---------------------------------
--> Checking Server Hostname <--
---------------------------------
Server Hostname: xxxxxxxxx
---------------------------------------
--> Checking Authentication Domain <--
---------------------------------------
Server is authenticating against: xxxxxxxxx
--------------------------------------
--> Validating DNS Server Entries <--
--------------------------------------
Servers should conform to global ANYCast Standard
I want my output to be entered temporary in /tmp/output for further
processing.
--> Checking Server Hostname <--
---------------------------------
Server Hostname: xxxxxxxxx
In short I need to read the text between 2 lines, which can be
incorporated in the perl script, but not a one-liner.
I'm afraid it's very unclear what it is you need. Can you give a
real-world example of your input and required output please?
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/