Setting post language using franc and frontmatter Smári McCarthy included in English Notes 2015-11-05 40 words One minute Contents This was handy: 1 2 3 4 5 6 7 8 for a in *.md; do lang=$(cat $a | franc); if [ "$lang" = "eng" ]; then frontmatter set $a language en else frontmatter set $a language is fi done;