is a bit overweight for this function. It's usually recommended to use tr
for one-to-one character translation.
tr '\025' '\n' <infile >outfile
And please use ***[code][/code] tags
*** around your code and data, to preserve the original formatting and to improve readability. Do not
use quote tags, bolding, colors, "start/end" lines, or other creative techniques.
Edit: BTW, bash and other advanced shells have a relatively new "ansi-c" form of quoting: $'..'
, that expands backslashed characters in a way similar to echo -e
. So you could also do this in sed
sed $'s/\x15/\n/g' <infile >outfile