flybywire flybywire - 6 months ago 14
Linux Question

How do I write non-ASCII characters using echo?

How do I write non-ASCII characters using echo? Is there an escape sequence, such as

\012
or something like that?

I want to append ASCII characters to a file using:

echo ?? >> file

Answer

Use

echo -e "\012"
Comments