AWK: Sum of a Column

Imagine you have a file with multiple columns and you need to quickly get the total of a column in command line in UNIX. The easiest way is to use AWK in the command line. Let’s take the following file: datafile.txt 1 2 3 4 5 6 7 8 9 Read more…

%d bloggers like this: