The following AWK one liner that can be used to get sum of a column in a text file: Here is the sample of file content: cat file_size.txt -rw——- 1 oracle oinstall 4096 Jun 8 18:24 file0000018500000001 -rwxr-xr-x 1 oracle oinstall 19 Jun 14 13:33 file0000034c00000001 -rw——- 1 oracle oinstall 18 Jun 14 13:34 file0000035400000002 […]