Re: [opensuse] grep question



James,

On Friday 30 March 2007 06:47, James Hatridge wrote:
Hi all,

I have files with mailing addresses in them. There are normally 4-5
lines with the first line starting with "address: " then the person's
name and 3 or 4 more lines of address. Can (how) I use grep to pull
all the address out? If not grep what else?

Find and install "agrep". It can process multi-line records. The "a"
stands for "approximate" and it can do much more sophisticated matching
than the stock grep family can.

I found version 4.0 of the package "agrep" in the Packman RPM
repository.


Thanks!

JIM
--
Jim Hatridge


Randall Schulz
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages