How can i count the total value of a column. I want the total size of a several files that begin with b.
Example:
ls -l b*
-rw-r--r-- 1 smith agr 2501 Mar 7 10:43 bk131.sql
-rw-r--r-- 1 smith agr 2532 Mar 7 10:43 bk131a.sql
I need the total value of column 5 (2501 + 2532). Is there a command or simple script that can handle this?
Example:
ls -l b*
-rw-r--r-- 1 smith agr 2501 Mar 7 10:43 bk131.sql
-rw-r--r-- 1 smith agr 2532 Mar 7 10:43 bk131a.sql
I need the total value of column 5 (2501 + 2532). Is there a command or simple script that can handle this?