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:
I am trying to write a small command that can update these dates daily with current date but its not replacing the date value.
Code:
Current result:
Can anyone help with this?
Last edited by RavinderSingh13; 08-28-2019 at 01:07 AM..
I am a newbie in shell scripting, hope you can advice how can I compare the date/time of file extracted from 'll' and current system date/time.
I have done the following:
ll -rt > $FILE_AGE_LOG
FILE_DATETIME=`more $FILE_AGE_LOG | head -02 | cut -c 45-57`
It returns 'May 4 19:11'.
If I... (4 Replies)
I need to extract the date part from the file name (20080221 in this ex) and compare it with the current date and delete it, if it is a past date.
$file = exp_ABCD4_T-2584780_upto_20080221.dmp.Z
really appreciate any help.
thanks
mkneni (4 Replies)
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)
Hi guys,
brand new to this thread and very very new to UNIX...so go easy please!
Anyway I have a file that looks like this:
>>--------------------------------------------------------------------------
Date/Time/Eng. : 2012-06-22 / 00:26 / DS
Reported problem : (SD) ... (5 Replies)
Hi Guys,
I have a file with following content
From 20121014 : To 20121014
Number of days : 1
1234
1245
1246
1111
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
RUN_DATE=`date -u +%Y%m%d`
So i want... (9 Replies)
SunOS -s 5.10 Generic_147440-04 sun4u sparc SUNW,SPARC-Enterprise
Hi,
In a folder, there are files. I have a script which reads the current date and subtract the modification date of each file.
How do I achieve this?
Regards,
Joe (2 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)
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
tartrc
tartrc(5) LinuxTaRT configuration file format tartrc(5)NAME
.tartrc - Configuration file for LinuxTaRT
DESCRIPTION
LinuxTaRT uses a configuration file called tartrc. This configuration file is searched for in the following location:
~/.tartrc
PARAMETERS
CustomText1 = string
Signature header or text to replace %c1 in template.
CustomText2 = string
Signature footer or text to replace %c2 in template.
SignatureFile = /path/to/signature_file
Location and name file to write the sigature to.
TagLineDatabase = /path/to/tagline_database
Location and name of tagline database. (defaults to /etc/tart.tags)
SpecialDates = /path/to/special_dates
Location and name of special date file.
CustomFile = /path/to/template
Location and name of layout template.
The following settings may be overridden from the command line.
RunQuiet = 0|1
Display information during executution.
ShowDate = 0|1
Display the date in the default signature.
ShowVersion = 0|1
Display the LinuxTaRT version in the default signature.
CenterText = 0|1
Center the text in the default signature.
UseCustomText = 0|1
Generate signature from template or use default layout.
UseSpecialDates = 0|1
Check special date file for special dates.
RunAsDaemon = seconds
Run as a daemon and wait this many seconds between updates.
FILES
~/.tartrc
SEE ALSO tart(1)tartdates(5)tart-custom(5)Mark Veinot 1.0.0 tartrc(5)