I have a feature request for the sort command: I would like to sort a table but do not want to sort the column names a the top. Thus the column names or a specified number of lines should be just given out as they are, unsorted.
Example: Sort also sorts the caption ("ColumnName"): michael@thinkpad:~$ for a in ColumnName 4 2 3 1 ; do echo $a ;done ColumnName 4 2 3 1 michael@thinkpad:~$ for a in ColumnName 4 2 3 1 ; do echo $a ;done |sort 1 2 3 4 ColumnName michael@thinkpad:~$ # Actual: michael@thinkpad:~$ for a in ColumnName 4 2 3 1 ; do echo $a ;done |sort --caption sort: Unbekannte Option »--caption« „sort --help“ liefert weitere Informationen. michael@thinkpad:~$ # Expected: michael@thinkpad:~$ for a in ColumnName 4 2 3 1 ; do echo $a ;done |sort --caption ColumnName 1 2 3 4 michael@thinkpad:~$ I know there is a workaround, but this is not so handy/comfortable and has other disadvantages: for a in ColumnName 4 2 3 1 ; do echo $a ;done | ( sed -u 1q ; sort -n )