03-20-2013
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, I'm new with Unix, I'm trying to get a last day of previous month with this format: %b %d %Y (example: Feb 25 2008).
Here is what I have so far.
#!/bin/ksh
cur_month=`date +%m`
cur_year=`date +%Y`
prev_month=$(($cur_month-1))
# Check to see if this is January
if
then
... (11 Replies)
Discussion started by: sirrtuan
11 Replies
2. Shell Programming and Scripting
Hello,
I wanted to display the month for previous day date. Like, today date is 18-Nov-2008. So the previous date is 17-Nov-2008. The output should be November.
If the today date is 1-DEC-2008, then output should be NOVEMBER.
If the today date is 1-JAN-2008, then output should be DECEMBER.... (4 Replies)
Discussion started by: govindts
4 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I'm new to shell scripting.
We've develop a script which will grep a file on the search criteria, MON (Jan/Feb/Mar/etc). But we should set this sript in cron which will run on every first day of the month. The problem I'm having is, when I run the script, it is displaying the contents of... (7 Replies)
Discussion started by: suneelj
7 Replies
4. Shell Programming and Scripting
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)
Discussion started by: vigdmab
2 Replies
5. UNIX for Dummies Questions & Answers
Hi folks
month=`date +%m`gives current month
Howto print previous month (current month minus 1) with Solaris date and ksh (7 Replies)
Discussion started by: slashdotweenie
7 Replies
6. UNIX for Dummies Questions & Answers
Hi,
On any given day, I want to capture the month that has gone by - said otherwise, how do I capture last month?
expr date '+%m' - 1
Above expression is giving error.
Please advise
thanks
---------- Post updated at 09:28 AM ---------- Previous update was at 09:11 AM... (1 Reply)
Discussion started by: ab_2010
1 Replies
7. Shell Programming and Scripting
Hi,
i unable to get the last month date in AIX.
current date - one month
Based on the forums tried but did not find the relevent information.
Any help grealy appriciated.
Thanks
Suri. (3 Replies)
Discussion started by: onesuri
3 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I am using the below code to get the year and month from date:
Below gives output like 201212.
dt=`date '+%Y%m'`
how do i get the previous month value(ie: subtract 1 from date)
example output:
dt=201211
Please help. :confused: (3 Replies)
Discussion started by: abhi_123
3 Replies
9. Homework & Coursework Questions
I am running a script in ksh to get the 2 months back date from system date.The below code is giving correct date output from putty command prompt.But while running the script is .ksh file it is giving the error below.Please suggest.
; d=a; y=a
m-=num
while(m < 1) {m+=12; y--}... (1 Reply)
Discussion started by: hini
1 Replies
10. Shell Programming and Scripting
I am not able to fetch first date and last date previous month
date -d -1month +%Y-%m-%d
date -d -1month +%Y-%m-%d
I need two format dd-mm-yyy
previous month 01-03-2016
previous month 31-03-2016
and also only date 1 to 31
Aprriciate your replay (4 Replies)
Discussion started by: jagu
4 Replies
LEARN ABOUT OSX
doctools_lang_faq
doctools_lang_faq(n) Documentation tools doctools_lang_faq(n)
__________________________________________________________________________________________________________________________________________________
NAME
doctools_lang_faq - doctools language faq
DESCRIPTION
OVERVIEW
WHAT IS THIS DOCUMENT?
This document is currently mainly a placeholder, to be filled with commonly asked questions about the doctools markup language and compan-
ions, and their answers.
Please report any questions (and, if possible, answers) we should consider for this document in the category doctools of the Tcllib SF
Trackers [http://sourceforge.net/tracker/?group_id=12883].
EXAMPLES
WHERE DO I FIND DOCTOOLS EXAMPLES?
The most examples of doctools markup currently known can be found in the Tcllib and Tklib package bundles where basically the documentation
of all packages is written in it. In Tcllib you will also find the sources for the doctools documentation themselves, which makes use of
nearly all of the available markup commands. You need one of
[1] A CVS snapshot of Tcllib. How to retrieve such a snapshot and the tools required for this are described at http://source-
forge.net/cvs/?group_id=12883
[2] A Tcllib release archive. They are available at http://sourceforge.net/project/showfiles.php?group_id=12883
BUGS, IDEAS, FEEDBACK
This document, will undoubtedly contain bugs and other problems. Please report any such in the category doctools of the Tcllib SF Trackers
[http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either the package and/or
the documentation.
SEE ALSO
doctools_lang_cmdref, doctools_lang_intro, doctools_lang_syntax
KEYWORDS
doctools commands, doctools language, doctools markup, doctools syntax, examples, faq, markup, semantic markup
CATEGORY
Documentation tools
COPYRIGHT
Copyright (c) 2007 Andreas Kupries <andreas_kupries@users.sourceforge.net>
doctools 1.0 doctools_lang_faq(n)