Everyday i run my script i want to modify "To" date on the first line with current date. I have set the current date in script as
So i want to replace "To" date with $RUN_DATE. The "From" date never changes.
Also, i want to replace on second line (toDate-fromDate)+1. Right now it is 1. So when it runs tomorrow it should be 2.
Thanks - jak
Hi all,
I've used various scripts in the past to work out the date last week from the current date, however I now have a need to work out the date 1 week from a given date.
So for example, if I have a date of the 23rd July 2010, I would like a script that can work out that one week back was... (4 Replies)
Hello gurus,
I am hoping someone can help me with the required code/script to make this work. I have the following file with records starting at line 4:
NETW~US60~000000000013220694~002~~IT~USD~2.24~20110201~99991231~01~01~20101104~... (4 Replies)
$beginDate = substr(DateCalc("today", "-7Days"),0,8);
This fetches the date 7 days back
Can I fetch the date before 7 years from todays date in Perl using same syntax
Use code tags, see PM. (3 Replies)
Hello,
I have a file like this:
2012112920121130
12345620121130msABowwiqiq
34477420121129amABamauee
e7748420121130ehABeheheei
in case the content of the file has the date of yesterday within the lines containing pattern AB this should be replaced by the current date. But if I use... (3 Replies)
current date command runs well
awk -v t="$(date +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
subtract 30 days fails
awk -v t="$(date --date="-30days" +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
awk command in hp unix subtract 30 days automatically from current date without date illegal option error... (20 Replies)
I am trying to work on a script where it is a *(star) delimited file has a multiple lines starts with RTG and 3rd column=TD8 I want to substring the date part and
I want to replace with currentdate minus 15 days. Here is an example. iam using AIX server
$ cat temp.txt
RTG*888*TD8*20180201~... (1 Reply)
We want to call a parameter file (.txt) where my application read dynamic values when the job is triggered, one of such values are below:
abc.txt
------------------
Code:
line1
line2
line3
$$EDWS_DATE_INSERT=08-27-2019
line4
$$EDWS_PREV_DATE_INSERT=08-26-2019
I am trying to write a... (3 Replies)
Hello All,
we what we call a parameter file (.txt) where my application read dynamic values when the job is triggered, one of such values are below:
abc.txt
------------------
line1
line2
line3
$$EDWS_DATE_INSERT=08-27-2019
line4
$$EDWS_PREV_DATE_INSERT=08-26-2019
I am trying to... (1 Reply)
I Have text like
XXX_20190908.csv.gz need to replace Only date in this format with current date every day
Thanks! (1 Reply)
Discussion started by: yamasani1991
1 Replies
LEARN ABOUT DEBIAN
tcal
TCAL(1) General Commands Manual TCAL(1)NAME
Tcal - runs the Gcal program with the date of tomorrow's day.
SYNOPSIS
tcal [--help | --version] | [--shift=[+|-]number] [Argument...]
DESCRIPTION
Tcal is a program which runs gcal with a date set one day ahead (equivalent the --shift=1 option). All given arguments are passed unmodi-
fied to the Gcal program. If the Gcal program shall be called with another date than tomorrow's date, this desired date can be selected by
using the --shift=[+|-]number option, in which [+|-]number is the distance of days the desired date is distant from the actual date (works
only for Gregorian years). The --shift option must be given before all other arguments which are passed to the Gcal program. An exit status
of 0 means all processing is successfully done, any other value means an error has occured.
OPTIONS --help Print a usage message listing all available options, then exit successfully.
--version
Print the version number, then exit successfully.
--shift=[+|-]number
Define the displacement in [+|-]number days the desired date is distant from the actual date.
ENVIRONMENT
GCALPROG
The GCALPROG environment variable contains the file name of the executable Gcal program, which is used by Tcal to call Gcal. This
takes precedence over the file name `gcal', which is burned-in during the compilation step of tcal.
COPYRIGHT Tcal Copyright (c) 1995, 96, 1997, 2000 Thomas Esken
This software doesn't claim completeness, correctness or usability. On principle I will not be liable for any damages or losses (implicit
or explicit), which result from using or handling my software. If you use this software, you agree without any exception to this agree-
ment, which binds you LEGALLY !!
Tcal is free software and distributed under the terms of the `GNU General Public License'; published by the `Free Software Foundation';
version 2 or (at your option) any later version.
Any suggestions, improvements, extensions, bug reports, donations, proposals for contract work, and so forth are welcome! If you like this
tool, I'd appreciate a postcard from you!
Enjoy it =8^)
AUTHOR ------------------------oOO \\_''/ OOo---------------------------
Thomas Esken O (/o-o) O eMail: esken@gmx.net
Im Hagenfeld 84 (( ^ )) Phone: +49 251 232585
D-48147 Muenster; Germany \____) ~ (____/ MotD : 2old2live, 2young2die
SEE ALSO gcal(1), txt2gcal(1), gcal2txt(1).
June 14, 2000 TCAL(1)