Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a file called "twister" and in that file is the word "games". I have it located in the g: drive I need to find the word "games" at the end of the sentence in the entire file (called twister). I know the parameter for end of line and search the hole drive (/s /e also /i for case sensitive (is to be ignored). Can't seem to put them all together.

share|improve this question
Show what you've tried and what error messages you've gotten an how the result differed from what you expected. Also, did you read help findstr? – Dennis Williamson Nov 28 '10 at 1:04
up vote 0 down vote accepted

Search for the string "games" at the end of a line (in other words, followed by a carriage return):

findstr /s /i /e "games" g:\twister

Search for the word "games" at the end of a sentence (in other words, followed by a period, question mark or exclamation point), may or may not be at the end of a line:

findstr /s /i "\<games[.?!]" g:\twister
share|improve this answer
Thankx Dennis I did use finstr/? and actually used your first command and it didn't work. So I double checked and when I was trying different prompts I actually erased the file completely (accidently). Found used command and it worked!! – kevin Nov 28 '10 at 2:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.