bug-datamash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-datamash] Op to just copy column verbatim?


From: Torsten Seemann
Subject: [Bug-datamash] Op to just copy column verbatim?
Date: Thu, 29 Aug 2019 17:57:25 +1000

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]