Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Help on grep reqrd

  Asked By: Leona    Date: Mar 20    Category: Java    Views: 404
  

I have a text file abc.txt with contents as shown below
"
For her first wish, she wanted to be the most beautiful woman in
the world. The frog warned her, "You do realize that this wish
will also make your husband the most handsome man in the world, an
Adonis, that women will flock to. The woman replied, "That will be
okay because I will be the most beautiful woman and he will only
have eyes for me." So, KAZAM-she's the most beautiful woman in n
"

Now I want to find the lines between the range starting with "the"
and ending with "be"
So in this case the output should be

"
the world. The frog warned her, "You do realize that this wish
will also make your husband the most handsome man in the world, an
Adonis, that women will flock to. The woman replied, "That will be
"

Does anyone know how to use grep or sed to achieve the above result.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Help on grep reqrd Or get search suggestion and latest updates.




Tagged: