mirror of
https://github.com/notwa/rc
synced 2024-11-05 07:19:02 -08:00
Connor Olding
d35c492850
* use /usr/bin/env for all hashbangs * enable hashall for bash * workaround syntax error in -shrc for bash
4 lines
213 B
Bash
Executable file
4 lines
213 B
Bash
Executable file
#!/usr/bin/env sh
|
|
df -xtmpfs | awk '
|
|
NR==1{printf"%-20s %7s %7s %7s %7s\n","Filesystem","Used","Max","Left","Misc"}
|
|
NR>1{printf"%-20s %7.2f %7.2f %7.2f %7.2f\n",$6,$3/2^20,($3+$4)/2^20,($4)/2^20,($2-$4-$3)/2^20}'
|