Solved

Test File Editing

Posted on 2006-11-03
3
185 Views
Last Modified: 2010-04-18
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
0
Comment
Question by:inf2300
  • 2
3 Comments
 
LVL 43

Accepted Solution

by:
Steve Knight earned 500 total points
ID: 17867575
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
 

Author Comment

by:inf2300
ID: 17867658
Perfect! exactly what i needed

Thanks!!
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17867713
No problem, thanks for the points!

Steve
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Learn about cloud computing and its benefits for small business owners.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now