I have data structured like this
X 43808504 G 1 ^]. <
X 43808505 C 3 . 4
X 43808506 T 8 . ?
X 43808507 G 5 . C
I want to get the max (8), min (1), and mean (4.25) from column 4 and write that to a file.
I've been wrestling with sorting and then cutting data away but that seems really inefficient.
Thanks for any help
csvsql
, unless you require a solution without additional software. – Panki Dec 20 '19 at 15:29sort | cut
to get the mean anyway. – Questionmark Dec 20 '19 at 15:31awk '{print $4}'
but you could do the whole lot inawk
pretty trivially – Chris Davies Dec 20 '19 at 15:31