Skip to content

Instantly share code, notes, and snippets.

@PavelJurasek
Created September 1, 2017 10:29
Show Gist options
  • Save PavelJurasek/f18478c3d89e184f58a0c76068f973ae to your computer and use it in GitHub Desktop.
Save PavelJurasek/f18478c3d89e184f58a0c76068f973ae to your computer and use it in GitHub Desktop.
Remove unused langs from ckeditor
for f in `find ckeditor/plugins/**/lang -type f`; do
grep -q "lang/[^(cs|en)].js" $f;
if [ $? -eq 1 ]; then
rm $f;
fi;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment