You are viewing a single comment's thread. Return to all comments →
rm file.txt > stdout.txt 2> stderr.txt while IFS= read -r line || [ -n "line" >> file.txt done
sort -n -k2 -t$'\t'< file.txt
Seems like cookies are disabled on this browser, please enable them to open this website
'Sort' command #6
You are viewing a single comment's thread. Return to all comments →
!/bin/bash
rm file.txt > stdout.txt 2> stderr.txt while IFS= read -r line || [ -n "line" >> file.txt done
-n sort numeric
-k column sort
-t seperator type
sort -n -k2 -t$'\t'< file.txt