Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67019 - Power Management guide minor misuse of cat/grep
Summary: Power Management guide minor misuse of cat/grep
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Docs Team
URL: http://www.gentoo.org/doc/en/power-ma...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-10 15:31 UTC by michael@smith-li.com
Modified: 2004-10-10 17:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 :)