for some reason word count always counts one extra character.
for example,
echo 11 | wc -c
counts 3 characters instead of 2
anyone know how to get the exact number of characters?
There is also the newline character which you dont see.
[/tmp]$ echo "11" | od -a
0000000 1 1 nl
0000003
[/tmp]$ echo -n "11" | od -a
0000000 1 1
0000002
[/tmp]$ echo -n "11" | wc -c
2