in reply to read a word from a line

It's good that you're telling us the desired output, but why those two words in particular? It's a bit of a riddle. Your attempted solution gives a clue. Would the following be a good statement of the problem?

Print the word that follows each occurrence of pond in the given file.

Replies are listed 'Best First'.
Re^2: read a word from a line
by sharan (Acolyte) on Feb 25, 2009 at 17:08 UTC
    NO... my intention is to grab just the value between the brackets.. i.e. between "(" and ")". Thats why i need just end and start as output. Thanking you

      Okay, that's clearer, especially now that you've changed your desired output. In your original question your desired output was

      end process