add-mon-tool show2cp
This commit is contained in:
parent
6abd6b6646
commit
82ea7c6720
17
show2cp
Normal file
17
show2cp
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
function calc_kb() {
|
||||
i=0
|
||||
cat 2cp | cut -c 35- | while read line; do
|
||||
kb=$(du "$line" | cut -f 1)
|
||||
i=$((i+kb))
|
||||
echo $i
|
||||
done | tail -n1
|
||||
}
|
||||
|
||||
kb=$(calc_kb)
|
||||
mb=$((kb/1024))
|
||||
gb=$((mb/1024))
|
||||
tb=$((gb/1024))
|
||||
|
||||
echo "Noch Zu Kopieren: $kb Kb = $mb Mb = $gb Gb = $tb Tb"
|
Loading…
Reference in New Issue
Block a user