MEDIAWIKI
Convert CSV to wikitable using BASH
DOC=plan.csv
echo Number of columns=$(cat $DOC | tr '\n' ' ' | tr '\r' '\n' | head -n 1 | tr ';' '\n' | wc -l )
echo "{|class=wikitable"
cat $DOC | \
tr '\n' ' ' | \
tr '\r' '\n' | \
while IFS=\; read c{1..6}
do echo -e "|"$c{1..6}"\n" "|-" | sed -e "s/^ *//g"
done