Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
bash: visual btrfs filesystem df oneliner
SUBMITTED BY:
Guest
DATE:
April 2, 2013, 8:39 a.m.
FORMAT:
Bash
SIZE:
276 Bytes
Raw
Download
Tweet
HITS:
1392
Go to comments
Report
RATIO
=
`
btrfs
filesystem
df
/
|
grep
Data
|
cut
-d
':'
-f2
|
sed
-r
's/\w+=| |\.[0-9][0-9]GB//g'
|
sed
-r
's|([0-9]+),([0-9]+)|\2/\1|'
`
;
clear
;
for
i
in
`
seq
1
$((
100
*
$RATIO
))
`
;
do
echo
-n
'#'
;
done
;
for
i
in
`
seq
1
$((
100
-
100
*
$RATIO
))
`
;
do
echo
-n
'-'
;
done
;
echo
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus