Skip to content

Instantly share code, notes, and snippets.

@lgrz
Last active May 29, 2020 05:16
Show Gist options
  • Save lgrz/d2bc49e7b39b809f069c83f2ecd8be4f to your computer and use it in GitHub Desktop.
Save lgrz/d2bc49e7b39b809f069c83f2ecd8be4f to your computer and use it in GitHub Desktop.
# build sdm template file
awk -F\; 'BEGIN {
print "<parameters>"
}
{
"./dm.pl \"" $2 "\" sd 1WFI 1WOD 1WUW" | getline qry
printf "<query><number>%s</number><text>%s</text></query>\n", $1, qry
}
END {
print "</parameters>"
}' 09.mq.train > 09.mq.train.template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment