Invertmap mass-editing helper script

# Invertmap mass-editing helper script (All GMs)

Syntax:

    gmX invertmap (inputfile) (outputfile)

will read inputfile and produce outputfile. The input should be in the format used by the extractor for both .forw and .back files:

    foo1 text
      possibly more lines of text for foo1, each indented
    bar1 text
      possibly more lines of text for bar1, each indented
    bar2 text
      etc
    bar3 text
      etc

    foo2 text
      possibly more lines of text for foo2, each indented
    bar2 text
      etc
    bar3 text
      etc
    bar4 text

Then outputfile will get the inverse mapping, that is:

    bar1 text
      possibly more lines of text for bar1, each indented
    foo1 text
      possibly more lines of text for foo1, each indented

    bar2 text
      etc
    foo1 text
      possibly more lines of text for foo1, each indented
    foo2 text
      possibly more lines of text for foo2, each indented

    bar3 text
      etc
    foo1 text
      possibly more lines of text for foo1, each indented
    foo2 text
      possibly more lines of text for foo2, each indented

    bar4 text
    foo2 text
      possibly more lines of text for foo2, each indented

This is useful for taking the .back things-to-people files produced by the extractor, editing them, and then turning them into .forw-like people-to-things files suitable for putting back into charsheets via the injector.

See the other mass-editing scripts.