It is doing what it is meant to be doing, you are incrementing a number and not a date. Consequently it will cycle through all the way to 20190800 before you get the correct entry - this would be fine if there were 100 day months and 100 months to the year but we aren't fully decimalised yet.
Here is some code that you could probably plugin with the minimum of modification.
Regards
Gull04
Last edited by gull04; 10-22-2019 at 07:41 AM..
Reason: Thoght I'd invented a new word - but just got the spelling very wrong on an old word!
Hi Guys,
My first post..:)
Right...I want to move existing files (with some date in their name) currently in $mainftp, to $mainfolder/$foldate/system1.
I'd like to be able to increment date in the for loop? Is this possible or should I use a different technique.
The script return the... (4 Replies)
I need to increment a date value through shell script.
Input value consist of start date and end date in DATE format of unix.
For eg.
I need increment a date value of 1/1/09 to 31/12/09 i.e for a whole yr.
The output must look like
1/1/09
2/2/09
.
.
.
31/1/09
.
.
1/2/09
.
28/2/09... (1 Reply)
Hi,
Iam new to scripting language.:o
can someone help me out solving this thread?hopingly ya....:)
I want to write a script which connects to db and searches the count in a table which has date column and id column.
If the count is not equal to 0 then it should increment the date with the one... (4 Replies)
Hi,
I have a variable lets say DATA_DATE.
I have to pass some value to this variable in YYYYMMDD format.
lets say today I have passed this variable as :
DATA_DATE=20100107
Then pls help me how to calculate another variable DATA_DATE1 (which is DATA_DATE+1).
The code should work... (3 Replies)
hi Friends,
Today_Dt=`date "+%Y-%m-%d"`
So the Today date is 2010-05-03
I have a file which has date values as below
2010-04-27
2010-04-02
2010-04-18
2010-04-28
2010-04-29
.. (1 Reply)
hi experts,
my requirement is like this i need to develop a shell script to update date part with new incremental date time in file some 'X' which is kept at some server location incrementing every two hours.as i am new to this scripting i need support from u people,thanx in advance (1 Reply)
Hi all,
I need to increment date at run time.
Example:
I need to write a shell script with two parameters.
1. country code like (US,UK, IND.....)
2. Date range from_date to to_date (20070101 to 20070331)
I need to run shell script like this
country_info.sh US 20070101 20070331
... (3 Replies)
hey guys,
I need to incerement the date variable for instance
echo `date '+%F %H:%M:00'`
this produces
2014-08-02 20:05:00
-I will grant this to : $Datehour and need to assign 1 hr from now to $Datelasthour
-the script time will be used to talk to DB system information.
however... (4 Replies)
Discussion started by: mo_VERTICASQL
4 Replies
LEARN ABOUT OSF1
xmscrollbarsetvalues
XmScrollBarSetValues(3X)XmScrollBarSetValues(3X)NAME
XmScrollBarSetValues - A ScrollBar function that changes ScrollBar's increment values and the slider's size and position
SYNOPSIS
#include <Xm/ScrollBar.h>
void XmScrollBarSetValues (widget, value, slider_size, increment, page_increment, notify)
Widget widget;
int value;
int slider_size;
int increment;
int page_increment;
Boolean notify;
DESCRIPTION
XmSetScrollBarValues changes the ScrollBar's increment values and the slider's size and position. The scroll region is overlaid with a
slider bar that is adjusted in size and position using the main ScrollBar or set slider function attributes. Specifies the ScrollBar wid-
get ID. Specifies the ScrollBar's slider position between XmNminimum and XmNmaximum. The resource name associated with this argument is
XmNvalue. Specifies the size of the slider as a value between zero and the absolute value of XmNmaximum minus XmNminimum. The size of the
slider varies, depending on how much of the slider scroll area it represents. This sets the XmNsliderSize resource associated with Scroll-
Bar. Specifies the amount of button increment and decrement. If this argument is not zero, the ScrollBar widget automatically adjusts the
slider when an increment or decrement action occurs. This sets the XmNincrement resource associated with ScrollBar. Specifies the amount
of page increment and decrement. If this argument is not zero, the ScrollBar widget automatically adjusts the slider when an increment or
decrement action occurs. This sets the XmNpageIncrement resource associated with ScrollBar. Specifies a Boolean value that when True,
indicates a change in the ScrollBar value and also specifies that the ScrollBar widget automatically activates the XmNvalueChangedCallback
with the recent change. If False, specifies any change that has occurred in the ScrollBar's value, but XmNvalueChangedCallback is not
activated.
For a complete definition of ScrollBar and its associated resources, see XmScrollBar(3X).
SEE ALSO XmScrollBar(3X)XmScrollBarSetValues(3X)