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 8202691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:16:36+00:00 2026-06-07T07:16:36+00:00

I realize there seems to be many questions on this forum for searching multiple

  • 0

I realize there seems to be many questions on this forum for searching multiple strings inside files, but I fail to find a solution to search multiple strings inside multiple files.

Using the pipe delimited search result is always an OR statement. What I would like is something that provides an “AND” statement, be it regex or even a tool that allows multiple inputs.

I have tried dnGrep, WinGrep, PowerGrep, and BareGrep, but none of these seem to provide this feature. For those of you that grep stored procedures, I am sure that you understand my pain.

I am trying to search for cases where a couple tables that share the same generic column name exist in stored procedures and with aliasing table names this becomes a huge hassle as I can’t just simply search for TableName.ColumnName.

If anyone can help me with this that would be fantastic. If anyone knows of a tool or has written a tool themselves, this would be great. It would also be useful for searching through java and c# code.

  • 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-06-07T07:16:37+00:00Added an answer on June 7, 2026 at 7:16 am

    Create a batch file, search.bat, containing the following:

    @echo off
    for /F "usebackq delims=|" %%I in (`findstr /M /C:%2 %1`) do findstr /M /C:%3 "%%I"
    

    search.bat takes three parameters. The first is a wildcarded file name. The second and third are the search strings. For example,

    search *.h deprecated security
    

    finds all the header files containing the words “deprecated” and “security”.

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

Sidebar

Related Questions

I realize there are similar questions on this topic, but I still cannot find
I realize that there are many similar questions, but most involve scaling down the
I realize there are similar posts to this out there, but rest assured, this
I realise there might be similar questions but I couldn't find one that was
I realize that there are many questions explaining how to get two DIVs to
I realize that there are many threads already posted that deal with this very
I realize there are a few other questions about why Cygwin is apparently slow,
According the decoder sample in Windows SDK, I realize myself decoder MFT, but there
[Preamble: Whereas I realize there may be simpler ways to do this (i.e., just
I realize this is a popular topic, and I've searched through many posts here

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.