Created
June 25, 2012 10:29
-
-
Save wktk/2987858 to your computer and use it in GitHub Desktop.
ドメインを TLD からソートするワンライナー
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl -F\. -nae "push@d,join('.',reverse(@F));END{print join('.',reverse(split(/\./)))foreach sort(@d)}" domains.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment