Created
September 23, 2014 09:44
-
-
Save smcelhinney/c7c876b7b34f98a924ea 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
#!/bin/bash | |
cat $1 | gawk 'BEGIN { FS = "," ; q="\""; OFS = q FS q; ORS = "\n" } match($0, /code=\"(.*)\"(.?)+defaultMessage=\"(.*)\"/, a) { $1 = $1; print q a[1], a[3] q}' >> $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment