I need some help with a formatting issue,.. I have the basic command expression as follows:-
expression a=((statfs('/', 'bfree')*statfs('/', 'bsize'))/1024/1024);b=((statfs('/mnt/Raspi', 'bfree')*statfs('/mnt/Raspi', 'bsize'))/1024/1024)
which displays the number of free blocks on a designated file system,.. but I would prefer/like to simply show the number of free gigabytes with a preceding label
eg (sda)23.1G,.. or (sdb)3234.4G or (sdc)0.1G
My understanding of the expression format is limited to examples I have found and I have not found anything relating as far as I can see. ( BTW why does the expression start "a=",.. I do not understand this bit either ).
can anyone help me?
many thanks
Bookmarks