[opensuse] Re: grep question
- From: James Hatridge <James.Hatridge@xxxxxx>
- Date: Sat, 31 Mar 2007 11:51:03 +0200
Hi all!
On Friday 30 March 2007 18:53, Anders Johansson wrote:
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
Thanks to Anders and all the others that sent me a clue! Anders' idea worked
fine and very simple.
Thanks!
JIM
--
Jim Hatridge
Linux User #88484
Ebay ID: WartHogBulletin
------------------------------------------------------
WartHog Bulletin
Info about new German Stamps
http://www.WartHogBulletin.de
Many Enemies -- Much Honor!
Anti-US Propaganda stamp collection
http://www.manyenemies-muchhonor.info
An American in Bavaria
http://www.gaubodengalerie.de
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- References:
- [opensuse] grep question
- From: James Hatridge
- Re: [opensuse] grep question
- From: Anders Johansson
- [opensuse] grep question
- Prev by Date: [opensuse] read only status on files copied from linux server to windows 2003
- Next by Date: Re: [opensuse] Beagle Configuration
- Previous by thread: Re: [opensuse] grep question
- Next by thread: Re: [opensuse] grep question
- Index(es):
Relevant Pages
- [opensuse] Another grep question
... I'm not sure if this is a grep or awk question. ... WartHog Bulletin
... Anti-US Propaganda stamp collection ... (SuSE) - [opensuse] grep question
... Can I use grep to pull all the address out? ... WartHog Bulletin
... Anti-US Propaganda stamp collection ... (SuSE)