Created
August 25, 2019 07:29
-
-
Save m1kah/c49fe75a0f8a463bb5383a98c97ac956 to your computer and use it in GitHub Desktop.
Gawk script for string transform
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
gawk -F '"' '{code=gensub(" ", "_", "g", $2); print $1 "\x22"$2"\x22,", "code: \x22" tolower(code) "\x22" $3}' activity_list.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment