On Fri, Oct 25, 2002 at 01:53:17PM -0700, Matt Simonsen wrote:
> On Fri, 2002-10-25 at 19:44, Scot wrote:
> > Anybody figured out a good regular expression to match all
> > 2am crons ? match 0,10,20,30,40,50 2 * * * and 0 2 * * *
>
> Wouldn't \S+\s2\s\S\s\S\s\S.* or something like that work? I
Hello Scot,
At 07:44 PM 10/25/2002 -0700, Scot wrote:
> Anybody figured out a good regular expression to match all
>2am crons ? match 0,10,20,30,40,50 2 * * * and 0 2 * * *
You can use automatic splitting:
echo '0,10,20,30,40,50 2 * * *' |
perl -wane 'print if $F[1] == 2 ;'
or use awk:
On Fri, 2002-10-25 at 19:44, Scot wrote:
> Anybody figured out a good regular expression to match all
> 2am crons ? match 0,10,20,30,40,50 2 * * * and 0 2 * * *
Wouldn't \S+\s2\s\S\s\S\s\S.* or something like that work? In other
words, just search for 5 fields where the second one was "2"
No
Hi Gurus and beginners;
Anybody figured out a good regular expression to match all
2am crons ? match 0,10,20,30,40,50 2 * * * and 0 2 * * *
Thanks
Scot
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
> -Original Message-
> From: Johnson, Fred [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 20, 2002 10:13 AM
> To: [EMAIL PROTECTED]
> Subject: Time change
>
>
> Hello all,
> I am working on a script to monitor the size of a
> particular file
Hello all,
I am working on a script to monitor the size of a particular file and the time
stamp of the file. My objective is to alert some individuals via email when the file
reaches a certain size and/or when the time stamp of the file does not match the
current time. I'm stuck on how