|
I use sed once in a while. It seems to always takes me forever to get
the command to work. I had a ASCII file that I needed to take out the
tabs (hex 09). The output file that sed created was EBCDIC. Finally
figured out I had to remove hex 05 not hex 09 to get it work. My 2
cents.
... really makes it ugly. But it should work::)
sed "s:\\\\\.br\\\\:$(print '\\\r\\\n'):g" in.hl7 > out.hl7
(I also replaced the % with : -- IMHO, % is ugly)
I was hoping you'd come up with a solution, since mine (above) is so ugly.
However, when I use this against a live file I have a
problem. The live file contains stand alone cr (x'0d')
as line delimiters.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.