ls | ruby -ne \'BEGIN{a= []}; a << File.size($_.chomp).to_i; END{puts a.sum}\'
The code above gets the file size of each file, puts it into a