bash sort using a tab delimiter
There are several ways to sort things when fields are tab separated. The simplest I have found is
syntax may vary for dos shells, possibly as
As of this posting, both variations are subject to verification of the syntax.
TAB=`echo -e "\t"` sort -t"$TAB" -k 5,3 scrambledFile.tsv > sorted.tsv
set tab=echo "\t" sort -t"%tab%" -k5,3 scrambledFile.tsv > sortedFile.tsv
Total Comments 0