Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] pattern matching
- Date: Thu, 12 Feb 2004 17:09:00 +0900 (JST)
- From: Tod McQuillin <devin@example.com>
- Subject: Re: [tlug] pattern matching
- References: <20040212164225.FFDF.B-ROBSON@example.com>
On Thu, 12 Feb 2004, Brett Robson wrote: > I know this is a simple question, but I've often needed to do it and > never come up with a simple way. > > I want to grep for a pattern but I don't want to see the whole line, > just the bit that matches. Sometimes I pipe to cut but in this case I > don't know where the pattern will be. Surely this is straight forward? Not with grep, but sed can do it: sed -ne 's/.*\(tl.*ug\).*/\1/p' file -- Tod McQuillin
- Follow-Ups:
- [tlug] GettingPastThings
- From: Lyle (Hiroshi) Saxon
- [tlug] GettingPastThings(2)
- From: Lyle (Hiroshi) Saxon
- References:
- [tlug] pattern matching
- From: Brett Robson
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Enterprise Linux Support
- Next by Date: Re: [tlug] Enterprise Linux Support
- Previous by thread: [tlug] pattern matching
- Next by thread: [tlug] GettingPastThings
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links