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 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
Reply With Quote
Forum Sponsor