From 597613109eb2103c3a196742ec04953b0996d6ae Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Wed, 30 Sep 2009 02:50:11 +0000 Subject: [PATCH] Use cut instead of awk for some sort of mem saving. From Sepp0 --- baraction.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 " } -- 2.39.2