On Fri, Oct 9, 2009 at 14:52, Guy <patter...@nullamatix.com> wrote: > MEM="`free -m|grep \"buffers/cache\"|awk '{print $3}'`M" >
Sorry not in answer to you main question, but you can get rid of that grep there: free -m|awk '/buffers\/cache/ {print $3}' Regards, Keith