Skip to content

Instantly share code, notes, and snippets.

@kriskowal
Created September 4, 2009 21:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kriskowal/181135 to your computer and use it in GitHub Desktop.
Save kriskowal/181135 to your computer and use it in GitHub Desktop.
# generate crazy mixed version, and sort them dewey decimal
echo {11,1}.{11,1}.{11,1}.{11,1} | xargs -n 1 \
| awk 'BEGIN{FS="."}{print $4, $1, $2, $3}' \
| sort -ns \
| awk '{print $4, $1, $2, $3}' \
| sort -ns \
| awk '{print $4, $1, $2, $3}' \
| sort -ns \
| awk '{print $4, $1, $2, $3}' \
| sort -ns \
| awk '{print $1 "." $2 "." $3 "." $4}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment