how to sum all numbers in file in bash
I have a file, with one number by line, how to get the sum
paste -s -d+ myfile_with_numbers | bc
and if you have a csv, delimited by ,
and for which the number is on
the 2nd field:
cut -d, my_file.csv -f 2 | paste -s -d+ | bc
Search
Recent Posts
categories
Support This Site
If my blog was helpful to you, then please consider visiting my Amazon Wishlist or donating via Paypal or Square Cash