- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Date one week from today
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2003 01:02 PM
тАО01-09-2003 01:02 PM
Is there a way to print the date one week from the current date in the form "16-January-2003". I can't seem to make the date command do anything but the current date.
Thanks in advance for any help,
Steve
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2003 01:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2003 01:06 PM
тАО01-09-2003 01:06 PM
Re: Date one week from today
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2003 01:08 PM
тАО01-09-2003 01:08 PM
Re: Date one week from today
#date +%d-%M-%Y
I'm not sure about month a year format, but use "man date" to review date options and correct them.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2003 02:31 PM
тАО01-09-2003 02:31 PM
Re: Date one week from today
You script worked great. I also needed to output the month names in Spanish so I made a copy of your script and found where you defined the months and changed it. It works great too.
Jose,
I still could get date to work on anything but today's date.
Thanks again,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2003 02:41 PM
тАО01-09-2003 02:41 PM
Re: Date one week from today
You didn't need to make a copy
of caljd.sh to make it habla espanol. Did you bother to do a caljd.sh -u? All you needed to do was set and export LANG to enable NLS support.
export LANG=es_ES.iso88591 SP_DT7=$(caljd.sh -O -e -S "-" $(caljd.sh -n 7))
echo "Date: ${SP_DT7}"
Do a locale -a to list all available locales.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-09-2003 02:58 PM
тАО01-09-2003 02:58 PM
Re: Date one week from today
You sure know how to make a guy feel stupid. I promise I will read the usage messages from now on!!
Thanks again,
Steve