[PLUG-Devel] Edit 2GB text file?

Alan Dayley alandd at consultpros.com
Thu Feb 23 22:56:41 MST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alan Dayley wrote:
> 
> I'll see what I can do with split.

OK, split worked fine.

My problem was that, in that entire file of a test log, I knew that
2,776 errors records out of 48,102,877 records were recorded.  I just
could not remember the record type tag for an error!  I wanted to load
the file just to see one error record.

Using grep against the split files, it just took a minute to find the
first error record.  I then used grep with the error tag string against
the original file to pipe the errors to a separate file.

Solved.  Thanks.

Alan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)

iD8DBQFD/qAZDQw/VSQuFZYRAtqiAJ94D9J6emtRp98fQgF7FOvZXotV1gCfXa+W
d1csSR0egA/BItLySPnoTiI=
=J3bY
-----END PGP SIGNATURE-----


More information about the PLUG-devel mailing list