Skip to content

Instantly share code, notes, and snippets.

@maxpeterson
Last active December 20, 2015 11:19
Show Gist options
  • Select an option

  • Save maxpeterson/6122758 to your computer and use it in GitHub Desktop.

Select an option

Save maxpeterson/6122758 to your computer and use it in GitHub Desktop.
Update key messages ins slides.yaml from key messages downloaded from Veeva report.
# Split key messages data
awk -F "\",\"" '{print $3 " " substr(substr($4, 0, match($4, /.zip/)-1), 26)}' keymessages.csv
# sed
awk -F "\"*,\"*" '{print " -e \"s/keyMessageId: "substr(substr($4, 0, match($4, /.zip/)-1), 26)"/keyMessageId: "$3"/\"\\"}' keymessages.csv \
| xargs -J % sed % -i '' project/data/slides.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment