Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


sort_command_tricks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

sort_command_tricks [2020/01/02 14:01]
juckins created
sort_command_tricks [2020/01/02 14:02] (current)
juckins
Line 2: Line 2:
  
 [[https://​www.unix.com/​shell-programming-and-scripting/​101372-how-sort-strings-length.html|Sorting by string length]] [[https://​www.unix.com/​shell-programming-and-scripting/​101372-how-sort-strings-length.html|Sorting by string length]]
 +
 +  $ awk '{ print length(), $0 | "sort -n" }' ​ /​usr/​share/​dict/​words
sort_command_tricks.txt ยท Last modified: 2020/01/02 14:02 by juckins