dos findstr with plus


# EXAMPLE: display the files (within the given folder) that contain the text "+renew"
findstr /n /l "+renew" "C:\Users\LongW\*"

# SYNTAX
# findstr <options-if-any> "<string-to-find>" "<path(s)-to-search>"
  
# OPTIONS'  
# /b  Matches the text pattern if it is at the beginning of a line.
# /e  Matches the text pattern if it is at the end of a line.
# /l  Processes search strings literally.
# /r  Processes search strings as regular expressions. This is the default setting.
# /s  Searches the current directory and all subdirectories.
# /i  Ignores the case of the characters when searching for the string.
# /x  Prints lines that match exactly.
# /v  Prints only lines that don't contain a match.
# /n  Prints the line number of each line that matches.
# /m  Prints only the file name if a file contains a match.
# /o  Prints character offset before each matching line.
# /p  Skips files with non-printable characters.

# https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/findstr

Are there any code examples left?
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source