#!/usr/bin/env bash cmd="date -u +%V\`uname\`|sha256sum|sed 's/\W//g'" answer="$(eval "$cmd")" declare -A prompts prompts[en]='What is the output of the command %s?' { echo ' array(\"${prompts[$lang]}\" => \"%s\")" "$cmd" "$answer" nl=',\n' done echo echo ');' } > /srv/http/wiki/FunnyQuestion.conf.php touch /srv/http/wiki/extensions/FunnyQuestion/FunnyQuestion.i18n.php