How to find some particular lines in unix Vi editor which starts with a particular word and end with another particular word?? For ex - There are 10 lines in the editor and only 4 lines start with the word APPLE and end with the word MANGO.Now how to find out these particular lines in Unix?

Showing Answers 1 - 10 of 10 Answers

GK

  • Aug 10th, 2006
 

1. Esc

2. :

3. /APPLE*

4. /*MANGO 

sajit kumar

  • Aug 11th, 2006
 

Hi GK,

sorry to say u that the process u listed doesn't work.Please confirm n try on ur own.

  Was this answer useful?  Yes

Asha Sonani

  • Aug 25th, 2006
 

1. Esc

2. :

3. /^APPLE*MANGO$

  Was this answer useful?  Yes

ArunSivaRaj

  • Aug 25th, 2006
 

You can try this cmd

syntax

esc + ?word (Press 'escape' key, type word-to-find)

esc+?APPLE [*] MANGO

 

  Was this answer useful?  Yes

Orions

  • Dec 28th, 2006
 

'esc` then :/word-to-find then `enter`

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions