after using
adb shell df
How to parse the text to eliminate spaces under Free column ?
Filesystem Size Used Free Blksize
/dev 483M 52K 483M 4096
/mnt/secure 483M 0K 483M 4096
/mnt/asec 483M 0K 483M 4096
/mnt/obb 483M 0K 483M 4096
/system 788M 720M 67M 4096
/data 1G 513M 1G 4096
/cache 123M 4M 118M 4096
/mnt/cd-rom 4M 4M 0K 2048
/protect_f 8M 4M 4M 4096
/protect_s 8M 4M 4M 4096
the main goal is to calculate the sum of free space.