1

I need to search line by line to ensure a word appears on every line of a .text file. I am currently working on a batch script so it would be ideal if batch has the capabilities to do this. Otherwise, what are my options?

2 Answers 2

1
echo Lines that have NOT the search word:
findstr /N /V /C:"theWord" theFile.txt
Sign up to request clarification or add additional context in comments.

Comments

1

Why dont you use c++ over .txt file and then convert the file to batch file.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.