Skip to content

Instantly share code, notes, and snippets.

@usaturn
Created October 22, 2020 15:52
Show Gist options
  • Save usaturn/f6a0811d35b865885ec399fc0bb22398 to your computer and use it in GitHub Desktop.
Save usaturn/f6a0811d35b865885ec399fc0bb22398 to your computer and use it in GitHub Desktop.
「解説:」をまとめる
#!/bin/gawk
# awk --re-interval -f kaisetsu.awk
RS="@"{
kaisetsu=""
for(i=5; i<=NF; i++){
gsub(/\n/, "", $i)
kaisetsu=kaisetsu$i
}
printf("@\n%s\n%s\n%s\n%s\n%s\n", $1, $2, $3, $4, kaisetsu)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment