|
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 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.