I am using an SD card to log data. I need to check check how much free space there is. I know I can use LS_SIZE on the volume to list all the files and their respective sizes. My question is, how would I grab each of the individual file sizes so I can sum them. When listing all the files and sizes, the result looks like this:
And so on. Obviously file name on the left and size on the right.
Any help would be very much appreciated.