Re: [Tutor] File reading

2014-06-18 Thread Umamaheshwar Rao
i agree. i expect the output be "all the best" "all the best 2 next line\n check this" On Wed, Jun 18, 2014 at 6:24 PM, Danny Yoo wrote: > On Wed, Jun 18, 2014 at 6:08 PM, Umamaheshwar Rao > wrote: > > Hi Experts, > > > > I have a file with below

[Tutor] File reading

2014-06-18 Thread Umamaheshwar Rao
Hi Experts, I have a file with below format this is first file operation x-1 "all the best" x-2 "all the best 2 next line check this" x-3 "last line" i need extract the lines starting with x-1 and x-2, can some throw some light on how to do? Thanks, Uma