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 the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-23-2006
bryan bryan is offline
Registered User
  
 

Join Date: Jan 2005
Posts: 22
vi command in shell script

I need to delete all the new lines in a file.
so, in vi, I would use
:1,$s/\n//g and then save the file.

How can I achieve this in command line? thanks