From: Jan Weitzel <j.weitzel@phytec.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] ptxdist: Let grep count the lines
Date: Wed, 22 Aug 2012 13:45:56 +0200 [thread overview]
Message-ID: <1345635956-9843-1-git-send-email-j.weitzel@phytec.de> (raw)
Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
---
bin/ptxdist | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/bin/ptxdist b/bin/ptxdist
index b8b5e99..e831562 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -2140,7 +2140,7 @@ setup_config() {
# this one is for Linux
if [ -r /proc/cpuinfo ]; then
- cpus="$(egrep '^(processor|cpu )' /proc/cpuinfo | wc -l)"
+ cpus="$(egrep -c '^(processor|cpu )' /proc/cpuinfo)"
if [ ${cpus} -eq 0 ]; then
cpus=1
fi
--
1.7.0.4
--
ptxdist mailing list
ptxdist@pengutronix.de
reply other threads:[~2012-08-22 11:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1345635956-9843-1-git-send-email-j.weitzel@phytec.de \
--to=j.weitzel@phytec.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox