make_lang_en.sh 403 B

12345678910111213
  1. #!/bin/sh
  2. # make_lang_en.sh - create english dictionary from msgs
  3. echo "make_lang_en.sh"
  4. cat msgs_en_used_once.txt msgs_en_used_more.txt |\
  5. sed "s/[ ]*$//g" |\
  6. sed "s/\bCUSTOM_MENDEL_NAME\b/\"Prusa i3 MK3\"/g" |\
  7. sed "s/\" \"//g" |\
  8. sed 's/\\"/\\x22/g' |\
  9. sed 's/\\xF8/\\xf8/g' |\
  10. sort -k4 | sed "s/^/#/;s/ \"/\n\"/;s/\"$/\"\n/" > lang_en.txt
  11. echo "finished... press any key"
  12. read
  13. exit