Skip to content

Instantly share code, notes, and snippets.

@usaturn
Last active October 17, 2020 11:28
Show Gist options
  • Save usaturn/23d9ad48fcbab06c60d2f578ae3a99f7 to your computer and use it in GitHub Desktop.
Save usaturn/23d9ad48fcbab06c60d2f578ae3a99f7 to your computer and use it in GitHub Desktop.
#!/bin/gawk
# awk --re-interval -f convert_style.awk style.txt > style.tsv
RS="@" {
split($1, sname, ":")
gsub("^技能:|上限:", "\t", $2)
gsub("^タイミング:", "\t", $3)
gsub("^対象:|射程:", "\t", $4)
gsub("^目標値:|対決:", "\t", $5)
gsub("^解説:", "\t", $6)
printf "%s\t%s%s%s%s%s%s\n", sname[1], sname[2] ,$2, $3, $4, $5, $6
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment