Text should be in a file with English-Hungarian or Hungarian-English and it will output the vocab lines that the website needs awk -F"|" '{ printf "{ word: \"%s\", meaning: \"%s\" },\n", $2, $1}' vocab.txt > vocab1.txt