Sorting 1 before 10 in bash
bash, sorting
Solution
If your fields are separated with something else than a blank, you can use the `--field-separator` or `-t` option, like so:
sort -k3n -t\; file
Problem
I'm sorting numerically on a specific column of a `;` separated file with: ``` sort -k3n file ``` But numbers 10 and 11 are sorted before 1. How do I fix this?