awk -F: 'NR==FNR { map[$1] = $2; next } {
for (key in map) {
gsub(key, map[key]);
}
} 1' dictionary.txt input.txt > output.txt
awk -F: 'NR==FNR { map[$1] = $2; next } {
for (key in map) {
gsub(key, map[key]);
}
} 1' dictionary.txt input.txt > output.txt