unix_shell
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| unix_shell [2022/05/24 10:27] – 134.190.232.106 | unix_shell [2022/06/23 10:21] (current) – 134.190.232.106 | ||
|---|---|---|---|
| Line 141: | Line 141: | ||
| </ | </ | ||
| - | <Last updated by Xi Zhang on Oct 6th, | + | |
| + | How to use sort in linux, especially ignore the header to sort special col? | ||
| + | < | ||
| + | (head -n 1 all.txt && tail -n +2 all.txt| sort -n -r -k2) > 123.txt | ||
| + | |||
| + | # sort -n | ||
| + | #sort -r | ||
| + | #sort -k | ||
| + | https:// | ||
| + | </ | ||
| + | |||
| + | <Last updated by Xi Zhang on Oct 6th,2021> <June 23th,2022> | ||
unix_shell.1653398842.txt.gz · Last modified: by 134.190.232.106 · Currently locked by: 216.73.216.59
