Re: Regex To get the Job Number and Corresponding state

2025-02-25 Thread Asad
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

Re: Regex To get the Job Number and Corresponding state

2025-02-25 Thread Asad
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

Regex To get the Job Number and Corresponding state

2025-02-25 Thread Asad
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

Re: Common regex for timedate

2018-11-19 Thread Asad
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/

Re: Common regex for timedate

2018-11-13 Thread Asad
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

Common regex for timedate

2018-11-12 Thread Asad
]:[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

Re: How to compare timestamp in two different files(regex)

2018-10-25 Thread Asad
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

Re: How to compare timestamp in two different files(regex)

2018-10-24 Thread Asad
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

Re: How to compare timestamp in two different files(regex)

2018-10-23 Thread Asad
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

Re: How to compare timestamp in two different files(regex)

2018-10-22 Thread Asad
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 &

Re: How to compare timestamp in two different files

2018-10-22 Thread Asad
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

Re: How to compare timestamp in two different files

2018-10-22 Thread Asad
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

How to compare timestamp in two different files

2018-10-22 Thread Asad
in different format and within range ? Thanks, -- Asad Hasan +91 9582111698

sftp code to use

2018-10-21 Thread Asad
Thanks, -- Asad Hasan +91 9582111698

Re: Regex for date

2018-08-25 Thread Asad
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

Regex for date

2018-08-25 Thread Asad
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

regex to get the rpm name version

2018-07-27 Thread Asad
re web tools to build regex Good websites for regex tutorials. Thanks, -- Asad Hasan +91 9582111698

Archive::Zip->addTree returned 2

2017-10-04 Thread Asad
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

debug perl package

2017-07-17 Thread Asad
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

Re: Perl Script for parsing log files.

2013-05-07 Thread Asad
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 , > >

Perl Script for parsing log files.

2013-04-13 Thread Asad
0line before it and after it . Please share your thoughts. Unable to start . Thanks, -- Asad Hasan +91 9945666911

Need a Perl Book for Beginner

2012-12-04 Thread Asad
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

Trying to find perl logic

2012-11-08 Thread 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