Created
January 21, 2014 08:21
-
-
Save astj/8536216 to your computer and use it in GitHub Desktop.
(A,B,C)が沢山並んでるのを(C,A,B)って並び替える
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
$ echo '(1,2,3)(2,2,3)(3,2,3)' | perl -pale '$_ =~ s/\((.+?),(.+?),(.+?)\)/\($3,$1,$2\)/g;' | |
(3,1,2)(3,2,2)(3,3,2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment