title: why does echo -n "100" | wc -c output 3?
body: <p>I just happened to be playing around with a few linux commands and i found that <code>echo -n "100" | wc -c</code> outputs <code>3</code>. i knew that 100 could be stored in a single byte as 1100100 so i could not understand why this happened. I guess that it is because of some teminal encoding, is it ? i also found out that if i <code>touch test.txt</code> and <code>echo -n "100" | test.txt</code> and then execute <code>wc ./test.txt -c</code>i get the same output here also my guess is to blame file encoding, am i right ?</p>