~clean up scripts

Remove any redundant info, only leaving what is absolutely necessary.
This commit is contained in:
dx
2020-07-15 15:34:53 +01:00
parent e2cede510b
commit b41c6dfec4
5 changed files with 6 additions and 6 deletions

View File

@@ -3,5 +3,5 @@
line=$(free -m | sed -n 2p);
used=$(echo $line | awk '{print $3}');
available=$(echo $line | awk '{print $2}');
echo "100 * $used / $available" | bc -l | xargs printf " Mem: %.2f" $1
echo "100 * $used / $available" | bc -l | xargs printf " %.2f" $1
echo "%"