No announcement yet.

How to ignore any line which starts with a char "!"

  • Filter
  • Time
  • Show
Clear All
new posts

  • How to ignore any line which starts with a char "!"

    I am using the latest BC 4 on Windows 10. I am doing three way compare. What should be the line in the script or command line option which will ignore any compare for a line which starts with a character (say ! - the exclamation char). Thank you

  • #2
    The three way text merge cannot be scripted.

    To ignore lines starting with ! in the Text Merge:
    Click the Rules toolbar button (referee icon).
    Go to the Importance tab.
    In the Unimportant Text section, click +.
    Text to find: ^!.*
    Check Regular expression.
    Click OK until you're back to the main window.
    Turn on View > Ignore Unimportant Differences.

    The above instructions are also valid for the 2-way Text Compare.
    Chris K Scooter Software


    • #3
      Could you please help what should be command in the script which will ignore the line which starts with ! char for two files compare and merge. I want the right file content to be merged to the left side file and result in the merged-file. I greatly appreciate your help.
      BCompare.exe @"MyScript.txt Left-File.txt Right-File.txt Merged-File.txt


      • #4
        Looks like this thread is duplicated over here:

        We can continue there.
        Aaron P Scooter Software