I've got a file with 400k+ numbers, each with a filename and its size in separate lines and I need to add them up to get a total.
filename1 size1
filename2 size2
Its not going to be a very large number ... < ~50,000,000
They're all integers, no decimal points, none of them > 120
Need to do this on a standard linux command line. I can modify the script used to generate this output, which is:
find full_path_to_your_directory -type f -printf '%p %s\n'