13 lines
179 B
Bash
13 lines
179 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
|
||
|
# More efficient version of the above.
|
||
|
free -h | while read What TTL Used _; do
|
||
|
if [ "$What" = 'Mem:' ]; then
|
||
|
printf '%s/%s \n' "$Used" "$TTL"
|
||
|
break
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
|