Find a Phrase in a File
Gregory Piñero
gregpinero at gmail.com
Tue Sep 19 20:24:57 UTC 2006
On 9/19/06, Gregory Piñero <gregpinero at gmail.com> wrote:
> 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.
Hmm, on second thought, I just have a whole lot of lines matching my
phrase. I didn't realize that so I assumed it was coming from one
line. Anyway what ended up working for me was:
grep -o '................................macro...........................'
/home/chiefinnovator/backups_all_web/Tablegen/all_databases_backup.sql
More information about the ubuntu-users
mailing list