Loading ...
Sorry, an error occurred while loading the content.
 

[jasspa] Me: Command-line multiple files global-search and replace

Expand Messages
  • Detlef Groth
    Recently I was discovering more and more the command-line use of Me which is very great. The command: me32 -p @replace.emf einleit.out with
    Message 1 of 1 , Oct 4, 1999
      Recently I was discovering more and more the command-line use of Me which is very great.

      The command:
      me32 -p "@..." <einleit.tex >einleit.out

      with replace.emf:
      ;; beginn replace.emf
      define-macro start-up
      ; german keyboard configuration
      translate-key "A-C-7 A-C-{" "\x7b"
      translate-key "A-C-9 A-C-]" "\x5d"
      translate-key "A-C-0 A-C-}" "\x7d"
      translate-key "A-C-[ A-C-\\" "\x5c"
      translate-key "A-C-= A-C-~" "\x7e"
      translate-key "A-C-m A-C-\xb5" "\xb5"
      translate-key "A-C-8 A-C-[" "\x5b"
      translate-key "A-C-q A-C-@" "\x40"
      translate-key "A-C-2 A-C-²" "\xb2"
      translate-key "A-C-b A-C-|" "\x7c"
      ; end german keyboard
      find-buffer "*stdin*"
      ; translations german umlauts to tex
      beginning-of-buffer
      replace-string "ä" "\\\\\"a" ; conversion ä -> \"a
      beginning-of-buffer
      replace-string "ö" "\\\\\"o"
      beginning-of-buffer
      replace-string "ü" "\\\\\"u"
      beginning-of-buffer
      replace-string "Ä" "\\\\\"A"
      beginning-of-buffer
      replace-string "Ö" "\\\\\"O"
      beginning-of-buffer
      replace-string "Ü" "\\\\\"Ü"
      beginning-of-buffer
      replace-string "ß" "{\\\\\"s}"
      save-buffer
      quick-exit
      !emacro
      ;; end of file

      did some german to tex format translations. However no file-wildcards like '*.tex' are allowed here.
      How to process all texfiles in one directory with on single command?

      Thanks,

      Detlef
    Your message has been successfully submitted and would be delivered to recipients shortly.