View Single Post
fnordianslip's Avatar
Posts: 670 | Thanked: 359 times | Joined on May 2007
#3
I needed to change it as below on my N900, but then I do have bash installed. I'm not familiar with awk as such, but your printf use seemed broken.

Code:
echo `head -2 < /proc/meminfo | awk '{print $2}' | sort -n`  | awk '{printf("You have %i kB of %i kB free memory\n",$1,$2)}'
__________________
Class .. : Lame hacker & beardy boffin
Humour . : [#######---] Alignment: Apathetic anarchist
Patience : [####------] Weapon(s): My cat, my code.
Agro ... : |#---------] Relic(s) : N900, MacBookPro, NSLU2, N800, SheevaPlug, Eee-901, Core2-Quad, PS3
"In theory, theory and practice are the same. In practice, they're not."
--
Beware of extras-devel.