mirror of
https://github.com/notwa/rc
synced 2024-05-20 10:53:23 -07:00
add remaining space column to dfu
This commit is contained in:
parent
803ffd926d
commit
702a3e9717
4
sh/dfu
4
sh/dfu
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
df -xtmpfs | awk '
|
||||
NR==1{printf"%-20s %7s %7s %7s\n","Filesystem","Used","Max","Misc"}
|
||||
NR>1{printf"%-20s %7.2f %7.2f %7.2f\n",$6,$3/2^20,($3+$4)/2^20,($2-$4-$3)/2^20}'
|
||||
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}'
|
||||
|
|
Loading…
Reference in New Issue
Block a user