![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compare date from db2 table to yesterday's Unix system date | sasaliasim | Shell Programming and Scripting | 9 | 1 Day Ago 08:37 PM |
| Changing Creation Date to a Prespecified Date of a File In Unix | monkfan | UNIX for Dummies Questions & Answers | 4 | 11-28-2006 04:15 AM |
| Command DATE in UNIX System | ZINGARO | UNIX for Dummies Questions & Answers | 3 | 07-20-2006 02:07 PM |
| Unix Date Command | redsoxfan | UNIX for Dummies Questions & Answers | 1 | 03-24-2006 12:09 PM |
| unix date command | niamh | UNIX for Dummies Questions & Answers | 1 | 04-09-2004 06:38 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
UNIX date command
Hello...I have have the value of date command stored in a particular format in a variable...Is there any way by which I can increment the value of the date using unix only?Until now i was calling an sql query to increment the date..
Thanks |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Quote:
In general it is possible to increment the date. |
|
#3
|
|||
|
|||
|
date command
hi the format is YYYYMMDD.......
eg : today is 20060214 |
|
#4
|
|||
|
|||
|
DATE query
well let me refine my query...
I have a set of dates in the format: YYYYMMDD stored in a file... what i do is read each value and increment the date in each.. till now i was calling an sql query to perform this task... i searched the man pages and got the command date --date="+1 day" but the above command increments the date wrt to today's date.. my date may have any value... so is there any command that can perform this operation..? i dont want to invoke a shell script and would rather prefer a command ( if it exists)........... thanks in advance...... |
|
#6
|
||||
|
||||
|
See the Date Arithmetic article in our FAQ section especially datecalc...
$ datecalc -a 2006 02 14 + 1 2006 2 15 $ |
|
#7
|
|||
|
|||
|
date query
Yes..I had in fact lokked into the date calc script which is immensely useful for such calculations...but the problem is that that would entail an extra shell script in the package that is to be handed over to our clients and that i have been told to avoid ...If anyone comes across any single line command that would do the trick, kindly let me know............
|
|||
| Google The UNIX and Linux Forums |