linux sort csv

sort --field-separator=$'\t' --key=1,2 file_name -o out_file_name

这里的$'\t' 是因为\t是多字符不能直接使用

你可能感兴趣的:(linux sort csv)