Hi Paolo,

* Paolo Bonzini wrote on Wed, May 19, 2010 at 10:53:19AM CEST:
> 
> >+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 '$='".

Is there a decided advantage over 'wc -l' such as allowed maximum or so?

Thanks,
Ralf

Reply via email to