Find a Phrase in a File

Gregory Piñero gregpinero at gmail.com
Tue Sep 19 20:22:00 UTC 2006


On 9/19/06, Adriano Varoli Piazza <moranar at gmail.com> wrote:
> 2006/9/19, Adriano Varoli Piazza <moranar at gmail.com>:
> > 2006/9/19, Gregory Piñero <gregpinero at gmail.com>:
> > > Hi there,
> > >
> > > I have a 56 mb text file, all the text on one line.  I want to find a
> [...]
> I understand that it's none of my business, but apart from my answer,
> I'm both curious and terrified at the idea of 56 mb of text in a
> single line. Sounds like a sure-proof entry to thedailywtf.com.

It's a MySQL database dump (sql formatted), I'm guessing all of the
inserts for a large table are all on the same line?  I can't really
get at the file to look at it (gedit crashes), but I assume something
like this is going on.  the normal grep command returns a whole lot of
text.

-Greg




More information about the ubuntu-users mailing list