[Top][All Lists]

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

Re: [PATCH] Document the grep workaround.

From: Paolo Bonzini
Subject: Re: [PATCH] Document the grep workaround.
Date: Wed, 19 May 2010 10:53:19 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100330 Fedora/3.0.4-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.4

+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 '$='".


reply via email to

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