• Login
Community
  • Login

Comparing files

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
7 Posts 4 Posters 478 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    Mario Castro
    last edited by Nov 28, 2022, 10:13 PM

    Greetings

    I do have real quick questions, hopefully, someone can help me.

    I have two files. Looking like this

    34234
    45435
    43534

    The other one is
    43534
    12354
    98455

    Is there any possibility of finding matches on these two files no matter what the line is? Like for example, it can find a match cause the number on line 7 of the first file equals the number on line 50 in the other file.

    So how to I compare the whole file, not going line per line

    D T P 3 Replies Last reply Nov 28, 2022, 10:20 PM Reply Quote 0
    • D
      Dr PC Mac Linux Valenciennes - Bruno DOUTRIAUX
      last edited by Dr PC Mac Linux Valenciennes - Bruno DOUTRIAUX Nov 28, 2022, 10:16 PM Nov 28, 2022, 10:16 PM

      yes, but not within notepad++ try google “file comparing free software”

      1 Reply Last reply Reply Quote 0
      • D
        Dr PC Mac Linux Valenciennes - Bruno DOUTRIAUX @Mario Castro
        last edited by Nov 28, 2022, 10:20 PM

        @Mario-Castro said in Comparing files:

        Is there any possibility of finding matches on these two files no matter what the line is? Like for example, it can find a match cause the number on line 7 of the first file equals the number on line 50 in the other file.

        So how to I compare the whole file, not going line per line

        or you should try find next occurence for a match, notepad probably can do that

        D 1 Reply Last reply Nov 28, 2022, 10:21 PM Reply Quote 0
        • D
          Dr PC Mac Linux Valenciennes - Bruno DOUTRIAUX @Dr PC Mac Linux Valenciennes - Bruno DOUTRIAUX
          last edited by Dr PC Mac Linux Valenciennes - Bruno DOUTRIAUX Nov 28, 2022, 10:22 PM Nov 28, 2022, 10:21 PM

          @Dr-PC-Mac-Linux-Valenciennes-Bruno-DOUTRIAUX search menu then tab search in files

          1 Reply Last reply Reply Quote 0
          • T
            Terry R @Mario Castro
            last edited by Nov 28, 2022, 10:24 PM

            @Mario-Castro said in Comparing files:

            So how to I compare the whole file, not going line per line

            It can be done within Notepad++ although it would involve a number of steps. Like combining the 2 files into one, sorting and removing lines which aren’t duplicated. If you needed to know which line and which file each remaining line came from you’d need to add in additional steps to include that information before combining the files.

            So understand all this means the file worked on would need to be a copy of the originals as data is destroyed in the process.

            There may be other applications out there which can do the job easily, but we deal with Notepad++ questions here.

            Terry

            1 Reply Last reply Reply Quote 3
            • P
              pnedev @Mario Castro
              last edited by Nov 29, 2022, 3:46 PM

              @Mario-Castro ,

              If you haven’t tried ComparePlus Notepad++ plugin yet it might help you.
              You can use Notepad++ Plugins Admin (from the Plugins menu) to download the plugin version suitable for your Notepad++ version or you could manually install the plugin.
              I won’t go into details here now, just write back if you need help with getting the plugin to work.

              1 Reply Last reply Reply Quote 0
              • M
                Mario Castro
                last edited by Nov 29, 2022, 6:51 PM

                Thanks :)

                1 Reply Last reply Reply Quote 0
                7 out of 7
                • First post
                  7/7
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors