Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When reading a Windows log file in a Linux terminal, I see a strange symbol “001E”

enter image description here

How can I replace it by space? Maybe something like sed -e 's/010e/ /'

share|improve this question

migrated from Oct 7 '12 at 11:09

This question came from our site for professional and enthusiast programmers.

What encoding does your terminal use? – choroba Sep 10 '12 at 13:59


$ sed 's/Ď/ /g'
share|improve this answer

Using this answer as a reference:

CHARS=$(python -c 'print u"\u001E".encode("utf8")')
sed 's/['"$CHARS"']//g' < /tmp/utf8_input.txt > /tmp/ascii_output.txt

I am not sure what is your character though... The screenshot suggests it is 0x001e but you have mentioned 0x010e. Whichever it is, you can just change the script above as needed.

share|improve this answer

If you see these four hexadecimal digits in a box, it means your terminal's font does not cover that character. The hexadecimal notation tells you which character it is: U+001E, which is in the control character range — 1E is ^^ (i.e. Ctrl-^).

If you want to replace it with a space, you can use

sed -e 's/\x1E/ /g' <input-file >output-file


tr '\036' <input-file >output-file

(tr only accepts octal).

share|improve this answer
It worked. Thanks! – user1660284 Sep 10 '12 at 14:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .