Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4609222
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:57:22+00:00 2026-05-22T00:57:22+00:00

Is it possible to search for a list of strings (100+), for example in

  • 0

Is it possible to search for a list of strings (100+), for example in a text file and using a command such as findstr to identify which files contain any of the strings? Or is there a better alternative (on Windows) ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T00:57:23+00:00Added an answer on May 22, 2026 at 12:57 am

    Probably, from the findstr help I found:

    /G:file Gets search strings from the specified file(/ stands for console).

    and

    /S Searches for matching files in the current directory and all
    subdirectories.

    so:

    C:\Temp>copy con strings.txt
    test
    test1
    test2
    ^Z
        1 file(s) copied.
    

    I created (with copy con brings me back) 3 files test.txt test1.txt and test2.txt and placed the strings we have from strings.txt into the respective files and then ran this command:

    C:\Temp>findstr /S /G:strings.txt *.txt
    strings.txt:test
    strings.txt:test1
    strings.txt:test2
    test.txt:test
    test1.txt:test1
    test2.txt:test2
    

    It indeed found them, and it even found all three from the source file strings.txt.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to search on date ranges using Lucene in Java? How do
Is it possible to search the content of a std::ostringstream without using the std::ostringstream::str()
Is it possible to programmatically invoke default search functionality of IE using ASP.net ,
Is it possible to use php to search a string for a file path
Got a list saved by using .data(). How is it possible to find exact
Is it possible to highlight the search term in returned search results? For example:
Possible Duplicate: How to search for a string in files with Ant (make sure
I am trying to search using dynamic finders by two fields which are status
I have a question about IPTC metadata. Is it possible to search images that
I am looking at the best possible approach to search and replace for a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.