How to operate on all columns with datamash?
1
Suppose I have the following data file: 111 222 333 444 555 666 777 888 999 I'm able to calculate the sum per column with GNU Datamash like this: cat foo | datamash -t sum 1 sum 2 sum 3 1332 1665 1998 How would I do this with datamash if I didn't know the number of columns in my data file? I'm asking because for example cut supports end of range symbols like - for its field selector.
shell text-processing
share | improve this question
edited Feb 22 at 15:53
DopeGhoti
43.1k 5 53 82
asked Feb 22 at 15:...