Skip to content

Instantly share code, notes, and snippets.

@m1kah
Created August 25, 2019 07:29
Show Gist options
  • Save m1kah/c49fe75a0f8a463bb5383a98c97ac956 to your computer and use it in GitHub Desktop.
Save m1kah/c49fe75a0f8a463bb5383a98c97ac956 to your computer and use it in GitHub Desktop.
Gawk script for string transform
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