The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



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

Join Date: May 2007
Location: Dallas, TX
Posts: 13
SED to convert ~ in a file to newline

Hi,

I have a .txt file which has a tilde(~) in it.
All that I want is to break into a newline whenever there is an occurence of '~'.
I have tried SED to do that but I could not succeed.

I would appreciate if I can get a shell script(ksh) for this problem real quick.

Thanks in advance.

-Raj.
Reply With Quote
Remove advertisements
!!
Forum Sponsor