Search Results

Search: Posts Made By: meeraKh
10,447
Posted By meeraKh
Thanks!!
Hey Shawn,
Finally managed to write the perl script to calculate the difference in days.

use Time::Local;
use POSIX;

$mm="$ARGV[0]";
$dd="$ARGV[1]";
$yyyy="$ARGV[2]";

$fileDate =...
10,447
Posted By meeraKh
:)yippeee!!! this worked - it gave me the...
:)yippeee!!!
this worked - it gave me the following output :

The file is 0.603263888888889 days old.


so i guess this was testing against 03/12/2008 00:00:00 - so I can pass my date that i...
10,447
Posted By meeraKh
okay - bad news - no python on the system. good...
okay - bad news - no python on the system.
good news - there is perl on the system - so maybe we can write a perl script to do the same - right now I am sitting with a perl book in my hands...:eek:
10,447
Posted By meeraKh
Also, I checked the /usr/bin directory and this...
Also, I checked the /usr/bin directory and this is what i got


retailtest:RMST90:/u01/app/rms9.0/prd/oracle/proc/bin>ls /usr/bin/en*
/usr/bin/enable /usr/bin/env
10,447
Posted By meeraKh
Thanks Shawn - but having problems with this too....
Thanks Shawn - but having problems with this too.
I created a new file, timeComparison.py using the vi editor, (actually just copied your code there) and then trid running the commant, and it gave...
10,447
Posted By meeraKh
Thanks Shawn The unix version i am using is ...
Thanks Shawn
The unix version i am using is

SunOS retailtest 5.9 Generic_122300-13 sun4u sparc SUNW,Sun-Fire-V240

tried getting help on the date command and the only 2 options available are...
10,447
Posted By meeraKh
Hi Shawn, OK i tried this - and this is the...
Hi Shawn,
OK i tried this - and this is the error that I got -

date: illegal option -- d
usage: date [-u] mmddHHMM[[cc]yy][.SS]
date [-u] [+format]
date -a [-]sss[.fff]

Is...
10,447
Posted By meeraKh
Hi Jadu, I did see your previous post yesterday...
Hi Jadu,
I did see your previous post yesterday and tried doing this - but I do not have GNU date and E1 just returns me today's date.
IS there any other way - the deadline for this is fast...
10,447
Posted By meeraKh
HI Shawn, NO- the date is in the filename...
HI Shawn,
NO- the date is in the filename itself - SHIP_606400_2008233202_20080206_070308083544.xml - in this case "20080206".
Also, there is only 1 shipment per XML file for the date mentioned in...
10,447
Posted By meeraKh
Shawn, Thanks for the quick response. This is...
Shawn,
Thanks for the quick response. This is what I am trying to do - these XML files are shipment files and these shipments need to be loaded into a database, dependent on some conditions.
This...
10,447
Posted By meeraKh
Weird date difference problem
I am trying to find the difference in days between 2 dates.
I have to extract the 1st date from a filename, which i did using the awk command.
I have to compare this date to today's date and if...
1,341
Posted By meeraKh
thanks.. that worked :-)
thanks.. that worked :-)
1,341
Posted By meeraKh
Help with sed command
Hi,
I am trying to get a substring from a String in a shell script and need some help.
I have a filename as
SHIP_606400_2008233202_20080306_070308083544.xml
The numbers after the 3rd "_" are the...
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 06:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy