× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



At 15:06 12/20/2002, Karl Keller wrote:
 1st type in:    sed 's/~/\

The first line has to end with a backslash (\).
You have to press the Enter key after the backslash to insert a hard
carriage return
in the replacement string.

2nd type in:     /g'   infile  > outfile
Karl,

You may want to consider using tr instead of sed. tr '~' '\n' will convert
the "~" characters to newlines.

You could do something like this:
  tr '~' '\n' < infile > outfile
or
  cat infile | tr '~' '\n' > outfile

hth
Pete

Pete Hall
pbhall@ameritech.net
http://www.pbhall.us/



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.