shell - how to get second column by some simple cut or awk command after uniq -c option -


i used following command on file 10 columns:

cut -f3 f1.tsv | sort | uniq -c | sort -k1,1 -nr > f2.tsv 

which gave me file like:

   1230 abc    1059 def     846 ghi     845 jkl 

but other work, need second column.

so please tell me how can use simple, awk or cut command it.

there's no need of continues commands , pipes. post sample contents of f1.tsv , final desired output.


Comments