1 |
On Tuesday 6 May 2008, 10:39, Neil Bothwick wrote: |
2 |
> On Tue, 6 May 2008 10:11:07 +0200, Etaoin Shrdlu wrote: |
3 |
> > cat /proc/cpuinfo|grep '^cpu MHz'|awk '{print $4"/30 +";}' |
4 |
> |
5 |
> This uses three commands when one will do, there's no need for cat or |
6 |
> grep |
7 |
> |
8 |
> awk '/^cpu MHz/ {print $4"/30 +";}' /proc/cpuinfo |
9 |
> |
10 |
> Similarly for the free command. |
11 |
|
12 |
Ah sure. I just wanted to explain what the commands do, and didn't even |
13 |
try to make corrections. |
14 |
|
15 |
> Longer isn't always better ;-) |
16 |
|
17 |
But it produces better obfuscated code! :-) |
18 |
-- |
19 |
gentoo-user@l.g.o mailing list |