Re: grep matched pattern??
- From: "zdk" <nx2zdk@xxxxxxxxx>
- Date: 29 Aug 2006 22:05:13 -0700
Thanks a lot.well done!
Bill Marcum wrote:
On 29 Aug 2006 00:26:45 -0700, zdk
<nx2zdk@xxxxxxxxx> wrote:
How to grep with specific pattern and just its first matched?grep something * | head -n 1
example:
grep something *
it will return
blah blah .... something
blah blah .... something
blah blah .... something
(this difference on its timestamp)
but I need just one line....
how to program a shell script ?
any help or suggest would be greatly appreciated much.thanks a lot.
Warachet S.
--
Stay the curse.
.
- References:
- grep matched pattern??
- From: zdk
- Re: grep matched pattern??
- From: Bill Marcum
- grep matched pattern??
- Prev by Date: Re: Quick AWK Question please....
- Next by Date: Re: grep matched pattern??
- Previous by thread: Re: grep matched pattern??
- Next by thread: Re: grep matched pattern??
- Index(es):
Relevant Pages
|