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)}'
echo `head -2 < /proc/meminfo | awk '{print $2}' | sort -n` | awk '{printf("You have %i kB of %i kB free memory\n",$1,$2)}'