I got 1 instead of 2 in the following example. How to count the last even when it does not end with a newline character? Thanks.
$ printf 'a\nb'|wc -l 1 -- Regards, Peng
I got 1 instead of 2 in the following example. How to count the last even when it does not end with a newline character? Thanks.
$ printf 'a\nb'|wc -l 1 -- Regards, Peng