Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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
You can’t perform that action at this time.