dilip schreef:
> suppose i have a file having the following data..
>
> SN = TOM
> FDN = SALLY
> OPERATIONAL STATE = ENABLED
>
> Now suppose i grep the string "ENABLED", i get the third line.But from
> this very line i need to go 2 lines above and get the SN value
> also.Please suggest .
>
> regard
> -Original Message-
> From: John W. Krahn [mailto:[EMAIL PROTECTED]
> Sent: 11 November 2008 13:48
> To: Perl Beginners
> Subject: Re: to read a line 2 lines above a line having a grepped
> string...
>
> dilip wrote:
> > hi all,
>
> Hello,
>
dilip wrote:
hi all,
Hello,
suppose i have a file having the following data..
SN = TOM
FDN = SALLY
OPERATIONAL STATE = ENABLED
Now suppose i grep the string "ENABLED", i get the third line.But from
this very line i need to go 2 lines above and get the SN value
also.Please suggest .
Someth
> From: dilip [mailto:[EMAIL PROTECTED]
> Sent: 11 November 2008 11:18
> To: beginners@perl.org
> Subject: to read a line 2 lines above a line having a grepped
string...
>
> hi all,
>
> suppose i have a file having the following data..
>
> SN = TOM
> FDN = SA
hi all,
suppose i have a file having the following data..
SN = TOM
FDN = SALLY
OPERATIONAL STATE = ENABLED
Now suppose i grep the string "ENABLED", i get the third line.But from
this very line i need to go 2 lines above and get the SN value
also.Please suggest .
regards'
Dilip
--
To unsubsc