Skip to content

Instantly share code, notes, and snippets.

@mdstoy
Created January 12, 2018 15:23
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 mdstoy/ddc3a8d769da41106ebe64e89826f3fa to your computer and use it in GitHub Desktop.
Save mdstoy/ddc3a8d769da41106ebe64e89826f3fa to your computer and use it in GitHub Desktop.
(Lazy) One liner that create csa file from shogi wars kifu url
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