This is simple one-liner to print all the files residing in the current folder, as well as their sizes; finally, perl will give you the total in bytes :
perl -e 'foreach() {$t+=-s;print "$_ ",-s,"\n"}print "Total: $t\n"'
hm, the editor keeps on removing the < > signs.
it should look like : open bracket, then the less than sign, asterisk, more than sign, closing bracket, but without the spaces in it.


