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]