-
-
Save eiriks/a1f5f878bf7af74211ae to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
sed '/^\s*$/d' \ | |
| paste -d '\t\0' - - - \ | |
| sed -e 's/\([^"]*\)$/\t\1/' \ | |
-e 's,<word>\(.*\)</word>,\1,' \ | |
-e 's/"<\(.*\)>"\t"\(.*\)"/\1\t\2/' \ | |
| cut -f3 \ | |
| sed 's/./\L\0/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment