Difference between revisions of "Sort"
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
* <code>sort -rnk2</code> | * <code>sort -rnk2</code> | ||
* <code>[[find .]] -ls | sort -rnk7 | more</code> | * <code>[[find .]] -ls | sort -rnk7 | more</code> | ||
− | * Sort by last [[column]]: <code>awk '{print $NF,$0}' | + | * Sort by last [[column]]: <code>cat file | awk '{print $NF,$0}' | sort | cut -f2- -d' '</code> |
== Related == | == Related == |
Revision as of 11:45, 18 January 2022
This article is a Draft. Help us to complete it.
sort
command included in coreutils
package
sort: write failed: /tmp/sortXksILS: No space left on device
Contents
Examples
sort -rnk2
find . -ls | sort -rnk7 | more
- Sort by last column:
cat file | awk '{print $NF,$0}' | sort | cut -f2- -d' '
Related
Activities
See also
Advertising: