for f in *.tex; do sed -i 's/\\J{\([^}]*\)}/[\1]/g' "$f"; done