Test File Editing

I have a huge test file from which i want to create a second text file. I want to only keep a line which has a specific word in it.

How would i go about doing this?

Thanks
inf2300Asked:
Who is Participating?
 
Steve KnightConnect With a Mentor IT ConsultancyCommented:
You could use

find /i "theword" bigfile.txt > outputfile.txt
or
findstr /i "theword" bigfile.txt > outputfile.txt

or type bigfile.txt | find /i "theword" > outputfile.txt

hth


Steve
0
 
inf2300Author Commented:
Perfect! exactly what i needed

Thanks!!
0
 
Steve KnightIT ConsultancyCommented:
No problem, thanks for the points!

Steve
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.