From: Marco Peereboom Date: Wed, 30 Sep 2009 02:50:11 +0000 (+0000) Subject: Use cut instead of awk for some sort of mem saving. X-Git-Tag: SCROTWM_0_9_30~200 X-Git-Url: https://code.delx.au/spectrwm/commitdiff_plain/597613109eb2103c3a196742ec04953b0996d6ae Use cut instead of awk for some sort of mem saving. From Sepp0 --- diff --git a/baraction.sh b/baraction.sh index 1b9d0ea..57f0e60 100644 --- a/baraction.sh +++ b/baraction.sh @@ -12,7 +12,7 @@ print_date() { } print_mem() { - MEM=`/usr/bin/top | grep Free: | awk {'print $6'}` + MEM=`/usr/bin/top | grep Free: | cut -d " " -f7` echo -n "Free mem: $MEM " }