# Sorting with fields -- sort the third column numerically clear sort -n -k 2 gstats # sort the fifth column lexicographically sort -k 4 gstats # sort the file alphabetically omitting leading spaces clear sort md sort -b -k 0 md