Morning everyone.
You'll need to excuse me for I'm running a little empty this morning.
Need to execute a job every second Tuesday of the month. Am I correct in my understanding that this isn't possible directly from crontab & hence I'll need to script. Does anyone have any similar solutions ?... (2 Replies)
Hi All,
I need to run a job every month at the beginning of the month which is scheduled through autosys, lets say on 03/01/2010. I need to pass the last month's i.e February's first_date = 02/01/2010 and last_date = 02/28/2010 as variables to a stored procedure. Can somebody please pass... (2 Replies)
Hello,
I could not find the exactly same post here.. so I will explain what I did to get the last month using date command.
I used
date +%Y-%m -d "-1 months"
to get the last month. However, the returned value of above command on 2009/10/31 was 2009 10 and not 2009 09.. and the... (9 Replies)
Hi
Can we get every tuesday or monday's date for the current week ?
For the current week i need tuesday's date or monday's date in
%m%d%y fromat
Thanks (5 Replies)
I have a date in format YYYYMMDD, i need to get the day of the week from the given date. I am working in AIX system.
---------- Post updated at 09:59 AM ---------- Previous update was at 09:57 AM ----------
Tried to post sum of the thread's link from which i tried, but de rules didnt allow me... (9 Replies)
I have requirment to get last date of previous month and the first date of previous 4th month:
Example:
Current date: 20130320 (yyyymmdd)
Last date of previous month: 20130228 (yyyymmdd)
First date of previous 4th month: 20121101 (yyyymmdd)
In my shell --date, -d, -v switches are not... (3 Replies)
Hi All,
I have a requirement which would calculate the Tuesday's date of the current week in yyyymmdd format in unix shell script.
Please help me out how could I do this .
I appreciate your help
Regards,
raj (7 Replies)
Hi,
I am trying to add few (say 3 days) to sysdate using -
date -d '+ 3 days' +%y%m%d
and it works as expected.
But how to add few (say 3 days) to a literal date value and how bash treats a literal value as a date. Can we say just like in ORACLE TO_DATE that my given literal date value... (2 Replies)
Discussion started by: pointers1234
2 Replies
LEARN ABOUT DEBIAN
shtool-mdate
SHTOOL-MDATE.TMP(1) GNU Portable Shell Tool SHTOOL-MDATE.TMP(1)NAME
shtool-mdate - GNU shtool pretty-print last modification time
SYNOPSIS
shtool mdate [-n|--newline] [-z|--zero] [-s|--shorten] [-d|--digits] [-f|--field-sep str] [-o|--order spec] path
DESCRIPTION
This command pretty-prints the last modification time of a given file or directory path, while still allowing one to specify the format of
the date to display.
OPTIONS
The following command line options are available.
-n, --newline
By default, output is written to stdout followed by a "newline" (ASCII character 0x0a). If option -n is used, this newline character is
omitted.
-z, --zero
Pads numeric day and numeric month with a leading zero. Default is to have variable width.
-s, --shorten
Shortens the name of the month to a english three character abbreviation. Default is full english name. This option is silently ignored
when combined with -d.
-d, --digits
Use digits for month. Default is to use a english name.
-f, --field-sep str
Field separator string between the day month year tripple. Default is a single space character.
-o, --order spec
Specifies order of the day month year elements within the tripple. Each element represented as a single character out of ``"d"'',
``"m"'' and ``"y"''. The default for spec is ``"dmy"''.
EXAMPLE
# shell script
shtool mdate -n /
shtool mdate -f '/' -z -d -o ymd foo.txt
shtool mdate -f '-' -s foo.txt
HISTORY
The GNU shtool mdate command was originally written by Ulrich Drepper in 1995 and revised by Ralf S. Engelschall <rse@engelschall.com> in
1998 for inclusion into GNU shtool.
SEE ALSO shtool(1), date(1), ls(1).
18-Jul-2008 shtool 2.0.8 SHTOOL-MDATE.TMP(1)