vi question

vi question

Post by Jack Maso » Sun, 22 Jul 2001 07:27:11



How do I delete lines *not* containing a particular string?

Thanks :)

 
 
 

vi question

Post by Eric Amic » Sun, 22 Jul 2001 09:08:48



> How do I delete lines *not* containing a particular string?

:1,$v/string/d

--
Eric Amick
Columbia, MD


 
 
 

vi question

Post by Keith Thompso » Sun, 22 Jul 2001 10:59:06



> How do I delete lines *not* containing a particular string?

> Thanks :)

:v/string/d

--

San Diego Supercomputer Center           <*>  <http://www.sdsc.edu/~kst>
Cxiuj via bazo apartenas ni.

 
 
 

vi question

Post by Jack Maso » Sun, 22 Jul 2001 22:13:52


Thank you guys!


Quote:> How do I delete lines *not* containing a particular string?

> Thanks :)

 
 
 

1. vi question - unknown terminal type

Recently, I added some new termcap entries to the end of our /etc/termcap
file.  Everything seems to work O.K. with these terminals, EXCEPT vi.  
When vi is started, we get an 'Unknown terminal type' message.  The terminal
name IS in /etc/termcap.  Where else does vi look?  What might be the problem?

--

Microelectronics Reliability Division          |            COMPMAIL:  e.ratazzi
Rome Laboratory                                |                  (315) 330-2946
"Exploring the Invisible Frontier"             |                    DSN 587-2946

2. File Size Limit

3. One vi question

4. unix sounds

5. a vi question!!

6. SunOS 4.11

7. VI Question - so answer it!

8. Vexing RedHat install problem

9. vi question

10. vi question (I already read the FAQ)

11. vi questions

12. vi question - mapping a function key in .exrc file that uses a yanked word