Difference between revisions of "Sort"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
== Related == | == Related == | ||
* <code>[[tsort]]</code> | * <code>[[tsort]]</code> | ||
+ | * <code>jq '[[sort_by]](.your_file) | reverse']]</code> | ||
== Activities == | == Activities == |
Revision as of 18:26, 30 September 2022
sort
command included in coreutils
package
Contents
Examples
sort -rnk2
find . -ls | sort -rnk7 | more
- Sort by last column:
cat file | awk '{print $NF,$0}' | sort -rn | cut -f2- -d' '
Errors
sort: write failed: /tmp/sortXksILS: No space left on device
Related
Activities
See also
Advertising: