Mailinglist Archive: opensuse (3354 mails)

< Previous Next >
Re: [opensuse] grep question
  • From: Anders Johansson <andjoh@xxxxxxxxxx>
  • Date: Fri, 30 Mar 2007 18:53:34 +0200
  • Message-id: <200703301853.34634.andjoh@xxxxxxxxxx>
On Friday 30 March 2007 15: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?

grep -A 4 name file

perhaps?

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

< Previous Next >
Follow Ups
References