Re: to read a line 2 lines above a line having a grepped string...

2008-11-11 Thread Dr.Ruud
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

RE: to read a line 2 lines above a line having a grepped string...

2008-11-11 Thread Stewart Anderson
> -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, >

Re: to read a line 2 lines above a line having a grepped string...

2008-11-11 Thread John W. Krahn
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

RE: to read a line 2 lines above a line having a grepped string...

2008-11-11 Thread Stewart Anderson
> 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

to read a line 2 lines above a line having a grepped string...

2008-11-11 Thread dilip
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