Bugzilla will be upgraded to version 5.0 on December 2, 2018. The outage period for the upgrade will start at 0:00 UTC and have a duration of 12 hours
Bug 7137 - grep -cl for number of processors in /etc/rc.d/rc.local
grep -cl for number of processors in /etc/rc.d/rc.local
Product: Red Hat Linux
Classification: Retired
Component: initscripts (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Bill Nottingham
Depends On:
  Show dependency treegraph
Reported: 1999-11-19 06:18 EST by Hans Ginzel
Modified: 2014-03-16 22:11 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-11-19 10:41:50 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Hans Ginzel 1999-11-19 06:18:09 EST
There is
              NUMPROC=`grep -cl "^cpu[0-9]+" /proc/stat`
in /etc/rc.d/rc.local,
but manual page of grep says:
     -l, --files-with-matches
              Suppress  normal  output; instead print the name of
              each input file from which  output  would  normally
              have  been  printed.  The scanning will stop on the
              first match.

So it will stop on the first ^cpu line and print also the filename
Why is there -l?

initscripts 4.48
grep (GNU grep) 2.3
Comment 1 Bill Nottingham 1999-11-19 10:41:59 EST
This is fixed in the errata initscripts release. :)

Note You need to log in before you can comment on or make changes to this bug.