+The QNX4 implementation fails to count lines with @code{grep -c '$'},
+but works with @code{grep -c '^'}.  Another alternative for counting
+lines is to use @code{wc -l}.

I think the most portable way to count lines is "sed -n '$='".

Paolo

Reply via email to