Created
January 12, 2018 15:23
-
-
Save mdstoy/ddc3a8d769da41106ebe64e89826f3fa to your computer and use it in GitHub Desktop.
(Lazy) One liner that create csa file from shogi wars kifu url
This file contains hidden or 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
curl <kifu-url> | grep receiveMove | sed -E 's/( +receiveMove\("|[A-Z_]+"\);|,L[0-9]+)//g' | sed 's/^/PI\t+\t/' | sed 's/\t/\n/g' > [output-file] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment