linuxbashasciiechonon-ascii-characters

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

Solution

  • Use

    echo -e "\012"