Using bash, this will do the trick:
$ sort -t$'\t' -k3 -nr file.txt
Notice the dollar sign in front of the single-quoted string. You can read about
it in the ANSI-C Quoting sections of the bash man page.
More Related Contents:
- Sorting multiple keys with Unix sort
- How to split CSV files as per number of rows specified?
- How to sort strings that contain a common prefix and suffix numerically from Bash?
- grep lines that contain 1 character followed by another character
- When should I wrap quotes around a shell variable?
- How to convert DOS/Windows newline (CRLF) to Unix newline (LF) in a Bash script
- How do I write standard error to a file while using “tee” with a pipe?
- How to cat a file containing code?
- What’s the magic of “-” (a dash) in command-line parameters?
- What is double dot(..) and single dot(.) in Linux?
- What does the number in parentheses shown after Unix command names in manpages mean?
- Forcing bash to expand variables in a string loaded from a file
- How to instruct cron to execute a job every second week?
- How do I use the lines of a file as arguments of a command?
- How can I programmatically create a new cron job?
- How to concatenate multiple lines of output to one line?
- Managing log files created by cron jobs
- How to run a shell script on a Unix console or Mac terminal?
- What is a .pid file and what does it contain?
- GROUP BY/SUM from shell
- List files recursively in Linux CLI with path relative to the current directory
- What is the difference between “source script.sh” and “./script.sh”?
- How to print third column to last column?
- Monitor Directory for Changes
- don’t fail jenkins build if execute shell fails
- Forking vs Threading
- How to attach a file using mail command on Linux? [duplicate]
- What are the rules for valid identifiers (e.g. functions, vars, etc) in Bash?
- What is PATH on a Mac (UNIX) system?
- understanding and decoding the file mode value from stat function output