Community
    • Login

    How to search 1000+ lines, same syntax and words in hundreds of TXT files

    Scheduled Pinned Locked Moved General Discussion
    8 Posts 4 Posters 629 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.
    • Saipul BakriS
      Saipul Bakri
      last edited by

      I’m looking for the same line/syntax/word in a stack of files how to.

      For example:

      I have hundreds of .txt files in a folder:
      D:\data\files… *.txt

      And I have hundreds of lines/syntax/words in a file at:
      C:\Users\Myusername\Desktop\wordlist-need-to-file.txt
      With the following contents…

      chicken
      boss
      joss
      help
      john123
      ish12c8kk38
      zebra787
      …
      …

      more than 1000 lines all in one file.

      Well my question, how do I find the same thousands of lines/syntax/words in a folder with thousands of txt files in D:\data\files… *.txt

      So far I only use the “Search in Files” method with “Regular Expression” can only search 20-40 lines/syntax/words with the search method word1|word2|word3|word4 and so on.

      can anyone understand my question and how i search for matching words in a stack of txt files with a file containing over 1000 lines, syntax and words?

      Alan KilbornA minsikauM 2 Replies Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Saipul Bakri
        last edited by

        @saipul-bakri

        Notepad++ itself isn’t going to be the best tool for that.

        Perhaps a different search utility but actually I can’t think of one that will do that.

        If it were me, I would resort to programming a solution. That could be done “inside” Notepad++ using the PythonScript plugin if you’d like.

        Saipul BakriS 1 Reply Last reply Reply Quote 0
        • Saipul BakriS
          Saipul Bakri @Alan Kilborn
          last edited by

          @alan-kilborn
          How to do it, of course I want and I’m very grateful for it

          1 Reply Last reply Reply Quote 0
          • minsikauM
            minsikau @Saipul Bakri
            last edited by

            @saipul-bakri
            Try Agent Ransack freeware with registration or the paid version. Does exactly that, i use now and again. Searches documents or files for stuff and reports and can hot link open those documents.
            Many options and will scan lots files quickly. However it takes a few seconds to do the scan.
            https://www.mythicsoft.com/agentransack/

            Now i am the new google for you!

            Saipul BakriS 2 Replies Last reply Reply Quote 0
            • Saipul BakriS
              Saipul Bakri @minsikau
              last edited by

              Thank you for your recommendation @minsikau . I’ll start with the free version first. If this is what I need I will buy it

              1 Reply Last reply Reply Quote 0
              • Saipul BakriS
                Saipul Bakri @minsikau
                last edited by

                @minsikau How do I search using this Agent Ransack for my problem above?
                I’m confused how to add my wordlist.txt list to search for the same word in a stack of files in a folder

                PeterJonesP 1 Reply Last reply Reply Quote 0
                • PeterJonesP
                  PeterJones @Saipul Bakri
                  last edited by

                  @saipul-bakri ,

                  It’s hard to tell whether that recommendation was offered with an understanding of your problem prompting that the other application was a good fit, or whether the user was just doing a knee-jerk software recommendation.

                  But either way, that application is a completely separate application, unaffiliated with Notepad++, and this Notepad++ Community forum is thus not the right place for getting help with that application; you would have to find somewhere else appropriate for getting help with that application.

                  If you are still interested in the Notepad++ with PythonScript plugin solution, let us know, the next time Alan logs in, he may be able to offer more advice on how to get that working.

                  Alan KilbornA 1 Reply Last reply Reply Quote 0
                  • Alan KilbornA
                    Alan Kilborn @PeterJones
                    last edited by

                    @peterjones said in How to search 1000+ lines, same syntax and words in hundreds of TXT files:

                    If you are still interested in the Notepad++ with PythonScript plugin solution, let us know, the next time Alan logs in, he may be able to offer more advice on how to get that working.

                    I thought some more about this, and I don’t think it is on-topic enough for Notepad++ in order to pursue it here. While a PythonScript could be written to do this, it is really unrelated to Notepad++ and is just plain Python, making it a better topic for some other forum.

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