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: Simon Cozens <simon@example.com>
- Date: Wed, 23 May 2001 10:50:23 +0100
- Content-Disposition: inline
- Content-Type: text/plain; charset=us-ascii
- In-Reply-To: <3B0B1572.3625.1C0B0E@example.com>; from twistedhammer@example.com on Wed, May 23, 2001 at 01:42:10AM -0800
- References: <F91J6pkNzPZrIkyPzGN0001064b@example.com> <3B0B1572.3625.1C0B0E@example.com>
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <3f1nyB.A.i5.sf4C7@example.com>
- Resent-Sender: tlug-request@example.com
- Sender: Simon Cozens <simon@example.com>
- User-Agent: Mutt/1.3.17i
On Wed, May 23, 2001 at 01:42:10AM -0800, twistedhammer@example.com wrote: > Do you *need* to use perl? awk can handle this without the fuss.. > 'BEGIN{ FS=" ";} { print "The program called by cron was ", $4; }' "Without the fuss" translates to basename `head -1 /var/spool/mail/cronthing | awk 'BEGIN{ FS=" ";} { print $4; }'` As opposed to perl -M File::Basename -nae 'print basename($F[3]); last' < /var/spool/mail/cronthing I would suggest you need to use Perl. And who needs a regular expression? -- Um. There is no David conspiracy. Definitely not. No Kate conspiracy either. No. No, there is definitely not any sort of David conspiracy, and we are definitely *not* in league with the Kate conspiracy. Who doesn't exist. And nor does the David conspiracy. No. No conspiracies here. - Thorfinn, ASR
- Follow-Ups:
- Re: REGEXP in perl questiion
- From: twistedhammer@example.com
- Re: REGEXP in perl questiion
- From: Simon Cozens <simon@example.com>
- References:
- REGEXP in perl questiion
- From: "Jean-Christian Imbeault" <jean_christian@example.com>
- Re: REGEXP in perl questiion
- From: twistedhammer@example.com
Home | Main Index | Thread Index
- Prev by Date: Re: REGEXP in perl questiion
- Next by Date: Re: REGEXP in perl questiion
- 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