Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: REGEXP in perl questiion
- To: tlug@example.com
- Subject: Re: REGEXP in perl questiion
- From: Matt Doughty <mdoughty@example.com>
- Date: Thu, 24 May 2001 10:12:24 +0900
- Content-Disposition: inline
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii
- In-Reply-To: <20010523112852.B23932@example.com>; from simon@example.com on Wed, May 23, 2001 at 11:28:52AM +0100
- References: <3B0B88E9.23238.001@example.com> <20010523110240.B23741@example.com> <20010523190921.F5075@example.com> <20010523112852.B23932@example.com>
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <BrDcI.A.f9B.FAGD7@example.com>
- Resent-Sender: tlug-request@example.com
- User-Agent: Mutt/1.2.4i-jp0
On Wed, May 23, 2001 at 11:28:52AM +0100, Simon Cozens wrote: > On Wed, May 23, 2001 at 07:09:21PM +0900, Matt Doughty wrote: > > why not: > > perl -ne '/^Subject: Cron <.*?> (\S+)/ && print (split(/\//,$1))[-1] . "\n"' < file > > Because it's a syntax error. fair enough.... how bout..... perl -ne '/^Subject: Cron <.*?> (\S+)/ && print "".(split(/\//,$1))[-1]."\n"' < file Now I guess it is time to leave the dead horse alone... > > -- > "Consider a spherical bear, in simple harmonic motion..." > -- Professor in the UCB physics department > > ----------------------------------------------------------------------- > Next Technical Meeting: Sat, May 12 13:30- > Next Nomikai Meeting: Fri, June (TBA) 19:30- Tengu Tokyo Eki Mae > ----------------------------------------------------------------------- > more info: http://www.tlug.gr.jp Sponsor: Global Online Japan
- References:
- Re: REGEXP in perl questiion
- From: vp@example.com (Viktor Pavlenko)
- Re: REGEXP in perl questiion
- From: Simon Cozens <simon@example.com>
- Re: REGEXP in perl questiion
- From: Matt Doughty <mdoughty@example.com>
- Re: REGEXP in perl questiion
- From: Simon Cozens <simon@example.com>
Home | Main Index | Thread Index
- Prev by Date: RE: What's closing off port 25?
- Next by Date: Re: datetime queries in postgres
- Prev by thread: Re: REGEXP in perl questiion
- Next by thread: Re: REGEXP in perl questiion
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links