Execute this
sort -t _ -k 2 -g data.file
- -t separator
- -k key/column
- -g general numeric sort
More Related Contents:
- Sort a text file by line length including spaces
- Using bash to sort data horizontally
- Why doesn’t **sort** sort the same on every machine?
- Make Bash handle variables like Batch
- Some troubles with using sed and awk [closed]
- Why would a correct shell script give a wrapped/truncated/corrupted error message? [duplicate]
- Add a new element to an array without specifying the index in Bash
- Lookup shell variables by name, indirectly [duplicate]
- How to assign a heredoc value to a variable in Bash?
- How do I use su to execute the rest of the bash script as that user?
- How to iterate over associative arrays in Bash
- Why start a shell command with a backslash?
- How to process each output line in a loop?
- How to extract one column of a csv file
- How to delete files older than X hours
- bash: force exec’d process to have unbuffered stdout
- Find and replace filename recursively in a directory
- How can bash script do the equivalent of Ctrl-C to a background task?
- What does it mean in shell when we put a command inside dollar sign and parentheses: $(command)
- How does bash tab completion work?
- How to add leading zeros for for-loop in shell? [duplicate]
- osascript using bash variable with a space
- What does “export” do in shell programming? [duplicate]
- What is the most elegant way to remove a path from the $PATH variable in Bash?
- Multiple commands in an alias for bash
- How to use > in an xargs command?
- How to match a single quote in sed
- Is bash a programming language?
- How does testing if a string is ‘greater’ than another work in Bash?
- What is the shortest way to get n-th column of an output?