Hello,

Using wc command in Linux, we're getting an unexpected behaviour.

The next command is returning 5 chars:

$ echo "TEST" | wc -m

The same behaviour is returned using the following command:

$ echo "TEST" | wc -c

Put the text in a file doesn't change the result.

If we type,

$ echo "TEST" | wc -L
the result is 4.

What the hell is happening?

Thanks,

Francisco Tena.

Reply via email to