Sorting strings with numbers in Bash [duplicate]

Execute this

sort -t _ -k 2 -g data.file
  • -t separator
  • -k key/column
  • -g general numeric sort

Leave a Comment