b55a2629fb
turns out i was dumping them in 2 different places lmao
13 lines
179 B
Bash
Executable File
13 lines
179 B
Bash
Executable File
#!/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
|
|
|
|
|