autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Document the grep workaround.


From: Ralf Wildenhues
Subject: Re: [PATCH] Document the grep workaround.
Date: Thu, 20 May 2010 20:35:04 +0200
User-agent: Mutt/1.5.20 (2009-10-28)

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

[Prev in Thread] Current Thread [Next in Thread]