The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
SED to convert ~ in a file to newline
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
SED to convert ~ in a file to newline
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
05-07-2007
anbu23
Registered User
Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,397
Quote:
Originally Posted by
jacoden
Did u try this in
sed
?
Code:
sed
's/~/\n/g' filename
Not all version of
sed
support \n
Code:
sed
"s/~/\\ /g" filename
anbu23
View Public Profile
Find all posts by anbu23