diff --git a/pages/linux/sort.md b/pages/linux/sort.md index 04ecd0db90..b7986795bb 100644 --- a/pages/linux/sort.md +++ b/pages/linux/sort.md @@ -10,6 +10,10 @@ `sort -r {{filename}}` +- Sort a file using numeric rather than alphabetic order: + +`sort -n {{filename}}` + - Sort the passwd file by the 3rd field, numerically: `sort -t: -k 3n /etc/passwd`