View Single Post
Posts: 415 | Thanked: 732 times | Joined on Jan 2009 @ Finland
#7
Originally Posted by fnordianslip View Post
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)}'
True. Evidently I lost concentration towards the end of the line