10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I am not able to find how to compare two dates in '%Y-%m-%d %H:%M:%S,%3N' format
i have to two dates as below
date1="2016-08-24 09:47:40,444"
date2="2016-08-24 10:45:40,567"
how to compare these two dates ?
I have tried below without success
if ; then echo 'yes'; fi
... (6 Replies)
Discussion started by: Ramneekgupta91
6 Replies
2. Shell Programming and Scripting
Hi All,
I am looking into a script which will give me a future dates for 7 days, including next month dates in case if runs on month ends...
I an able to get this in Linux but not working for Solaris.
OS: Solaris 10
Please help (6 Replies)
Discussion started by: nanz143
6 Replies
3. UNIX for Dummies Questions & Answers
Hi ,
i am trying to read a tsv file record by record and change the date column with iso date format. it have different dates with format like mm/dd/yyyy HH:MM:SS EST ,i am trying serarch for the date format lke this yyyy-mm-dd HH:MM:SS EST and replace to it if dosent match that format . Any... (2 Replies)
Discussion started by: vikatakavi
2 Replies
4. UNIX for Advanced & Expert Users
Hi Am Using Unix Ksh ...
I have a Table called date
select * from date ;
Date
01/02/2013
06/02/2013
I need the output as
Missing Date
01/02/2013
02/02/2013
03/02/2013
04/02/2013
05/02/2013
06/02/2013 (2 Replies)
Discussion started by: Venkatesh1
2 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I am trying to print the dates that falls between 2 date variables into a file. Here is the example.
$BUS_DATE =20120616
$SUB_DATE=20120613
Output to file abc.txt should be : 20120613,20120614,120120615,20120616
Can you pls help me accomplish this in LINUX.
Thanks... (5 Replies)
Discussion started by: dsfreddie
5 Replies
6. Solaris
Hi Experts,
How to get date 5 days after current date in YYYYMMDD format?
How do we compare date in YYYYMMDD format?
Thanks (1 Reply)
Discussion started by: needyourhelp10
1 Replies
7. Shell Programming and Scripting
I have the date of the file passed into a variable also current date formatted same passed into a separate variable and compare the two with an if statement and statement always comes up false. Even though I verified the dates. Any help would be awesome.
Filecrtdate=`ls -l $i | awk '{print... (19 Replies)
Discussion started by: coderanger
19 Replies
8. UNIX for Dummies Questions & Answers
let says, today is my payroll day (7/26), my next payroll day will be 8/9. i want to generate a shell script to extract 8/9, 8/23, 9/6, and so on for 2010. (2 Replies)
Discussion started by: tjmannonline
2 Replies
9. Shell Programming and Scripting
Hi,
I am currently writing a shell script to enter daily reoccurring jobs into the crontab. I want to be able to specify any two dates for which I want these daily jobs to run between.
Below is an example of what I need to be written to crontab.
# Give a start day of 21/10/2009 09:00... (2 Replies)
Discussion started by: JM_86
2 Replies
10. Shell Programming and Scripting
I have a date that is received as text in Jan 1 2002 12:00AM format. Can anyone give me any ideas how to format that in oracle format i.e. 01-JAN-02 (1 Reply)
Discussion started by: jinky
1 Replies