Assaf,
Thanks for maintaining datamash, it has proved useful in our work, esp to avoid R / Pandas for simple cases.
Today I went to do what i thought would be a very simple thing. I wanted to do a "named column cut" of a TSV file. Like unix cut -f1,3 but with named columns and reordering. But i could not find an 'op' to select/print/cut a column as is?
name,age,country
john,43,uk
aaron,21,usa
bruce,33,au
% datamash -H cut country,name
country,name
uk,john
usa,aaron
au,bruce
Am I going crazy?
Any help appreciated!
--Torsten