05-27-2011
Hi Tytalus,
Thanks for your time....
What I need is, for example I am providing the input as 01-01-2011.
The system should accept it and increment it by one month and should display the output as 01-02-2011.
Similarly if the input is 01-12-2011, the output should be 01-01-2012.
Any solution for this will be of great help.....
Cheers.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I would like to find out how can i calculate a date which is 3 months ago. I intend to run a cron job on the 1st of every month, and calculate the month 4 months earlier from the date. For example, if today's date is 1st May 2007, i would like to return 012007( January 2007).
i can get... (1 Reply)
Discussion started by: new2ss
1 Replies
2. Shell Programming and Scripting
hi,
I have a big file that contains datas since 4 years ago.
I need re-create this file but just lines that are 13 months ago from today.
see what I have: ( I have a file.ksh that calls this file.scl ok !!)
======== file.scl ================
/STATISTICS=stderr
/STABLE
/NODUPLICATES... (3 Replies)
Discussion started by: andrea_mussap
3 Replies
3. Shell Programming and Scripting
hi,
I have a big file that contains datas since 4 years ago.
I need re-create this file but just lines that are 13 months ago from today.
see what I have: ( I have a file.ksh that calls this file.scl ok !!)
======== file.scl ================
/STATISTICS=stderr
/STABLE
/NODUPLICATES... (4 Replies)
Discussion started by: andrea_mussap
4 Replies
4. Programming
stupid question (0 Replies)
Discussion started by: puttster
0 Replies
5. Shell Programming and Scripting
I am new to shell scripting and doing a similar thing @ work
Stan:Smith:Detroit:MI
Jim:Jones:Farmington Hills:MI
Jack:Frost:Denver:CO
Sue:Apple:New York:NY
Cindy:Thompson:Battle Creek:MI
John:Smith:Denver:CO
George:Jones:New York:NY
Need to create a shell script This script will display... (1 Reply)
Discussion started by: jakemathew
1 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I'm curious to know if we can display 5 months of a calendar using the cal command. I know we can three successive months (cal -3) but I wanted to know if we can do it with 5 months for example. (Give a specific month, and get as a result two previous months + the month in question + two... (12 Replies)
Discussion started by: Imane
12 Replies
7. Shell Programming and Scripting
Please find my below requirement and see if you can help me on this. I am looking for a shell script which can provide me the below output.
Manuall steps which i am doing now
1) First I source the File
$ . ./WC_env.sh
2) Execute the command
$ /app/oracle/product/mos/bin/mosotl -url... (2 Replies)
Discussion started by: sudheshpn@gmail
2 Replies
8. Shell Programming and Scripting
hi all i have a reporting work and i want it to be automated using shell scripting kindly let me know how can i make that possibe .
eg data are :... (2 Replies)
Discussion started by: Avinash shaw
2 Replies
9. Shell Programming and Scripting
Hi,
I need to calculate the average of the following values using shell scripitng.
Can anyone please suggest a solution?
... (10 Replies)
Discussion started by: karan pratap si
10 Replies
10. UNIX for Beginners Questions & Answers
topfunc()
{
top
}
topfunc
Here i used the top command inside a function,and i called the function.
when executing this bash file i get all the process which are using by the kernel
i just want to display only the first 5 running process.
is it possible? (7 Replies)
Discussion started by: Meeran Rizvi
7 Replies
LEARN ABOUT DEBIAN
printenv
PRINTENV(1) User Commands PRINTENV(1)
NAME
printenv - print all or part of environment
SYNOPSIS
printenv [OPTION]... [VARIABLE]...
DESCRIPTION
Print the values of the specified environment VARIABLE(s). If no VARIABLE is specified, print name and value pairs for them all.
-0, --null
end each output line with 0 byte rather than newline
--help display this help and exit
--version
output version information and exit
NOTE: your shell may have its own version of printenv, which usually supersedes the version described here. Please refer to your shell's
documentation for details about the options it supports.
AUTHOR
Written by David MacKenzie and Richard Mlynarik.
REPORTING BUGS
Report printenv bugs to bug-coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
Report printenv translation bugs to <http://translationproject.org/team/>
COPYRIGHT
Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
The full documentation for printenv is maintained as a Texinfo manual. If the info and printenv programs are properly installed at your
site, the command
info coreutils 'printenv invocation'
should give you access to the complete manual.
GNU coreutils 8.12.197-032bb September 2011 PRINTENV(1)