a question in vi

Ronald Pikkert ronald at atcmp.nl
Wed Oct 17 05:36:50 AEST 1990


wkfu at alcor.usc.edu (Wilson Fu):
> Does anyone know how to delete lines containing a certain
       ^^^^^^
> string in a file?

You should after reading the vi/ex manual but try:

:g/string/d


-
Ronald Pikkert                 E-mail: ronald at atcmp.nl
@ AT Computing b.v.            Tel:    080 - 566880
Toernooiveld
6525 ED  Nijmegen



More information about the Comp.unix.questions mailing list