How to use mlr (miller) to create an id, url CSV file from a file of ids by concatenating 'support.mozilla.org/questions/' to the id
Pontifications
mlr --csv --implicit-csv-header label id\
offtopic-and-duplicates-removed-01january2019-18january2019-2fa-sumo-forum-question-ids.txt\
| mlr --csv \
put '$url = "https://support.mozilla.org/questions/"\
. $id'\
> urls_offtopic-and-duplicates-removed-01january2019-18january2019-2fa-sumo-forum-question-ids.csv
offtopic-and-duplicates-removed-01january2019-18january2019-2fa-sumo-forum-question-ids.txtis just a file of 1idper linemlr --csv --implicit-csv-header label idoutputs a CSV file with one column nameidmlr --csv put '$url = "https://support.mozilla.org/" . $idadds theurlcolumn.is the string concatenation operator in miller which wasn’t clear to me from the docs <— all i could find in the docs was: “If the regular expression is a more complex expression, including string concatenation using.,”- output is https://github.com/rtanglao/rt-kitsune-api/blob/master/urls_offtopic-and-duplicates-removed-01january2019-18january2019-2fa-sumo-forum-question-ids.csv