us, $phase, $job ) = ('')x3;
>
> }
> }
> }
> __DATA__
> Job ID: 52
> User: zdmuser
> Client: zdmhost
> Job Type: "EVAL"
> Current status: SUCCEEDED
> Current Phase: "ZDM_SETUP_TGT"
> Job ID: 53
> Current stat
this..
>
> ---
> Erick Paquin
>
> On 25/02/2025 11:49 am, Asad wrote:
> > Hi All,
> >
> > I have a requirement to use regex , find the Job ID for the Current
> > status: SUCCEEDED and Current Phase: "ZDM_SETUP_TGT" from a file
> > which has da
Hi All,
I have a requirement to use regex , find the Job ID for the Current
status: SUCCEEDED and Current Phase: "ZDM_SETUP_TGT" from a file
which has data in the format gives below :
Job ID: 52
User: zdmuser
Client: zdmhost
Job Type: "EVAL"
...
Current status: SUCCEEDED
Current Phase: "ZDM_SETU
ation, those strings could
> be handled by the date utility
> $ date -d '05-JUL-18 10:19:42'
> Thu Jul 5 10:19:42 CDT 2018
>
> $ date -d '10/17/18 12:28:12'
> Wed Oct 17 12:28:12 CDT 2018
>
> so, for epoch seconds
> $ date -d '10/17/
atch.
> Are you validating the strings and, if so, will you reject non-matches?
> Are you looking to break them up into parts, $date, $mon, $year ... ?
> Compare them, maybe to find the difference? Are these the only 2 formats
> you'll be looking at, that is, maybe some might be 17
]:[0-5][0-9]:[0-5][0-9]
this only matches : Calling apply.sql on 17.10.18 12:28:12,447849 +02:
I need a common regex which matches both the lines ?
Thanks,
--
Asad Hasan
+91 9582111698
e time in line to starting time
> d. If line time is greater than or equal to start time, set print flag
> to true
> e. If line time is greater than ending time, set print flag to false
> f. If print flag is true print line
> g. End of loop — process next line
>
> If you need
gt; #Change the mtime to a quarter past.
> my $when = timelocal( 0, 15, $t[2], $t[3], $t[4], ( $t[5] - 100 )
> );
> utime $when, $when, "$wxpath";
> }#File needs to be refreshed.
> }#what normally happens
>
> # create object
> my $xml = new XML::Simple;
>
> # read XML file
> my $data = $xml->XMLin("$wxpath");
>
> print Dumper($data);
>
> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/
>
>
>
--
Asad Hasan
+91 9582111698
0-9]{4})
Both are working as expected I would like to know if these are good
regex or it can be better , please suggest .
Thanks,
On Tue, Oct 23, 2018 at 12:14 PM Asad wrote:
> Hi All ,
>
> first hurdle is how do I extract this Feb 23 01:10:28 2018 from
> file1 whi
d/%y %H:%M:%S');
>
> if ($t1 > $t2) { ... }
> On 23/10/2018 09:17, Asad wrote:
>
> Hi All ,
>
> first hurdle is how do I extract this Feb 23 01:10:28 2018 from
> file1 which regex can I use ?
>
> convert it into epoch
>
> then
&
timestamps.
Thanks,
On Tue, Oct 23, 2018 at 11:21 AM Asad wrote:
> Thanks, I will do that. It was for perl .
>
> On Tue, Oct 23, 2018 at 10:42 AM Jim Gibson wrote:
>
>> On Oct 22, 2018, at 9:12 PM, Asad wrote:
>> >
>> > file1 :
>> > Patching tool v
Thanks, I will do that. It was for perl .
On Tue, Oct 23, 2018 at 10:42 AM Jim Gibson wrote:
> On Oct 22, 2018, at 9:12 PM, Asad wrote:
> >
> > file1 :
> > Patching tool version 12.1.0.2.0 Production on Fri Feb 23 01:10:28 2018
> >
> > Bootstrapping registr
in different format and within range ?
Thanks,
--
Asad Hasan
+91 9582111698
Thanks,
--
Asad Hasan
+91 9582111698
can start from here and find a nicer form of this regex.
>
> On 8/25/18 2:06 PM, Asad wrote:
>
> Hi All ,
>
> I need a regex to match the date : Sat Aug 25 08:41:03 2018 and
> covert into a format : '%m/%d/%Y %H:%M:%S'
>
> Thanks,
>
> --
> Asad Hasan
> +91 9582111698
>
>
>
--
Asad Hasan
+91 9582111698
Hi All ,
I need a regex to match the date : Sat Aug 25 08:41:03 2018 and
covert into a format : '%m/%d/%Y %H:%M:%S'
Thanks,
--
Asad Hasan
+91 9582111698
re web tools to build regex
Good websites for regex tutorials.
Thanks,
--
Asad Hasan
+91 9582111698
Hi All
I have perl script abc.pl and module abc.pm . When i execute abc.pl which
is using one the modules
Archive::Zip > I am getting the following errors :
patch_zip: /Location/patch1//patch1.zip Creating zip file
/Location/patch1//patch1.zip for apply pwd: The file access
permissions do not al
Hi All ,
I am new to perl , I a have a abc.pl script and abc.pm module . I
want to understand when I execute abc.pl hw to get to a debug state to
identify what values does it take . Any GUI interface available to see the
flow of events.
--
Asad Hasan
+91 9582111698
hich has a browse button to select the log file and it displays
the output parsing through the logic any module which this does or what you
suggest.
Any pointers for UI interface or any book I can refer would be helpful.
Thanks,
On Sat, Apr 13, 2013 at 9:20 PM, Asad wrote:
> Hi All ,
>
>
0line before
it and after it .
Please share your thoughts. Unable to start .
Thanks,
--
Asad Hasan
+91 9945666911
would e good for me as a
starter would be grateful .
Found one book Perl For Dummies, 4th Edition not sure what is
you all recommendation to buy this book ?
Thanks in advance,
Asad
Hi All ,
I have a requirement in Linux environement to check for an
application pre-requisites if rpm's are installed or not .
Like rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}\n"
compat-libstdc++-*
rpm -q --queryformat "%{NAME}-%{VERSION}-%{RELEASE}\n" glibc-common-*
Wher
23 matches
Mail list logo