The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-03-2007
kjbaumann kjbaumann is offline
Registered User
 

Join Date: Jun 2006
Posts: 49
vi to remove lines in file

All,

I have a text file with several entries like below:

personname
personname.domain.com

I know there is a way to use vi to remove only the personname.domain.com line. Can someone help? I believe that it involves /s/g/ something...I just can't remember the exact syntax.

Thanks
Reply With Quote
Forum Sponsor