NR==FNR{a[$1]=$2; next} reads the first file (file2.csv) and stores its second field in an array a indexed by the first field
{print $0","a[$2]} reads the second file (file1.csv) and prints each line followed by the corresponding value in the a array indexed by the second field
Sorry for a slight threadjack here, but how do we enable translations as admins?
Is LibreTranslate and/or DeepL built into 4.x and we just need to add API keys? Or is there a third-party component that needs to be installed?
I can't find any documentation on it at docs.joinmastodon.org. I did find the PR at https://github.com/mastodon/mastodon/pull/19218, but I'd love to avoid parsing all the code if possible.