Solved

Test File Editing

Posted on 2006-11-03
3
179 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 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

22 Experts available now in Live!

Get 1:1 Help Now