ignore interchanged lines

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Udo Hädicke
    New User
    • Mar 2018
    • 2

    ignore interchanged lines

    how can I configure text comparision to ignore interchanged lines? How to set the amount of lines that may be interchanged?

    example:
    **** text 1 ****
    Peter
    Bob
    ***************
    **** text 2 ****
    Bob
    Peter
    ***************
  • Aaron
    Team Scooter
    • Oct 2007
    • 15938

    #2
    Hello,

    You would need to Sort the files with an external command line application:
    http://www.scootersoftware.com/suppo...rnalconversion

    We do include one "Sort" out of the box, in the File Formats list, which sorts every line alphabetically. You can select it in the Session Settings or from the Formats toolbar dropdown.
    Aaron P Scooter Software

    Comment

    • Chaython
      New User
      • Mar 2018
      • 2

      #3
      after following these steps I get a "conversion error"

      Comment

      • Chaython
        New User
        • Mar 2018
        • 2

        #4
        The external sorter gave an error; the internal one sorted most properly though

        Comment

        • Udo Hädicke
          New User
          • Mar 2018
          • 2

          #5
          Hello Aaron,

          thanks for your answer, but this does not solve my problem. The difference is part of a long text. Sorting the whole file will make it difficult to locate other differences. Here a better example:

          **** file 1 ****
          IF ( _MdtReDoneFu1[VmdtIdx] = FALSE )
          THEN
          RetValN093 := OK;
          RetVal := OK;
          ELSE
          RetVal := RUNNING;
          END_IF
          **************
          **** file 2 ****
          IF ( _MdtReDoneFu1[VmdtIdx] = FALSE )
          THEN
          RetVal := OK;
          RetValN093 := OK;
          ELSE
          RetVal := RUNNING;
          END_IF
          **************

          Comment

          • Aaron
            Team Scooter
            • Oct 2007
            • 15938

            #6
            Hello,

            Those steps for an external conversion is specific for RESX files using a RESX command line tool. You can use the internal sorter or provide any command line tool that is capable of sorting your file, but the RESX example would only work for RESX files.
            Aaron P Scooter Software

            Comment

            • Aaron
              Team Scooter
              • Oct 2007
              • 15938

              #7
              Hello,

              Using a custom tool, it could parse into your specific file structure and normalize the lines within your sections, but we don't have this specific tool since it's dependent on your files.

              If you have small sections you want to sort, but not the whole file, on the fly, you can selection one section and Copy. Then select the other, right click, and Compare to Clipboard. Then viewing the new tab, you can enable the Sort format on just that tab/section.
              Aaron P Scooter Software

              Comment

              Working...