Text files - Copy "interesting" lines into another file

  • Thread starter Thread starter eliu
  • Start date Start date
E

eliu

Hi.

I'm looking for a freeware that:

1) Opens a text file
2) Copies the lines that contain a given string into another file.

Thanks.
 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi.

I'm looking for a freeware that:

1) Opens a text file
2) Copies the lines that contain a given string into another file.

Thanks.

type textfile.txt |find /i "given string" > outfile.txt

/i is to enable case insensitivity.

HTH
- --
Adam Piggott, Proprietor, Proactive Services (Computing).
http://www.proactiveservices.co.uk/

Please replace dot invalid with dot uk to email me.
Apply personally for PGP public key.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFDHyo17uRVdtPsXDkRAk0wAJ9ivi5kWLeLgGupbxfQoLdHaoOiTwCdHN25
dylClQOQGZpnrd2uvMbebD4=
=geuh
-----END PGP SIGNATURE-----
 
Hi.

I'm looking for a freeware that:

1) Opens a text file
2) Copies the lines that contain a given string into another file.

Thanks.
TextExtract is a small but powerful program that scans one or more files
for text strings, extracts them and saves them into a separate file.
Useful if, say, you have a corrupted word processor file, or if you just
want to see what text, if any, is inside a file. Configurable
extraction.
Lovely interface. Very straightforward to use.

TextExtract is free to use from its GUI (ie. the buttons and that) and
shareware if you use it from its command-line interface.

http://www.ultima-thule.co.uk/
 
eliu said:
Hi.

I'm looking for a freeware that:

1) Opens a text file
2) Copies the lines that contain a given string into another file.

Thanks.

$ cat <file> | grep <string> > output.txt

at least in cygwin :) i think grep is ported to windows...

laurent
 
Back
Top