Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 67019

Summary: Power Management guide minor misuse of cat/grep
Product: [OLD] Docs-user Reporter: michael <michael>
Component: OtherAssignee: Docs Team <docs-team>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.gentoo.org/doc/en/power-management-guide.xml
Whiteboard:
Package list:
Runtime testing required: ---

Description michael@smith-li.com 2004-10-10 15:31:12 UTC
More than one guide uses this pattern:
'cat foo | grep bar;'
when 
'grep bar foo;'
would probably be a slightly better choice.

Reproducible: Always
Steps to Reproduce:




Sorry to be so anal, but Gentoo teaches so many *n?x users their practices, I
felt that I should at least bring it up.
Comment 1 michael@smith-li.com 2004-10-10 15:33:29 UTC
sorry, forgot to mention that one example of what I'm talking about is 

http://www.gentoo.org/doc/en/power-management-guide.xml

Code Listing 3.1
cat /proc/cpuinfo | grep "cpu MHz"

could be

grep "cpu MHz" /proc/cpuinfo
Comment 2 SpanKY gentoo-dev 2004-10-10 17:51:46 UTC
there were three occurences of that, fixed them all

thanks :)