This is a discussion on Shell date command for manipulation and formatting date within the Shell scripting forums, part of the Development/Scripting category; This will give a date using date utility to find next day for system date in a particular format . ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
This will give a date using date utility to find next day for system date in a particular format .
date --date='next day' "+%Y%m%d" . in the same way i need a output to get the next day or next month for any date which the user is passing as a parameter $1. Say $1 (i pass as $1 as23/12/2007 then i need the 5 day of 23/12/2007 i.e output /result 28/12/2007) something like this below mydate=$1 date --date $mydate +%m%d%Y -d ýesterday (this does not work) Is it possible ? if so pls give me the soln/command . Thks |
| Sponsored Links | ||
|
|
|
||||
|
Have your tried yest?
Download of the day: Easy date manipulation with yest utility under Linux/UNIX |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Run mv command from ftp shell script | subin | Shell scripting | 6 | 05-02-2008 09:44 AM |
| How to calculate date minus 72 hours? | svinopas | Shell scripting | 1 | 10-09-2007 09:37 PM |
| script to ping + date | dendi_rm | Shell scripting | 3 | 09-11-2007 10:42 AM |
| running command a root in shell scripts | chiku | Shell scripting | 1 | 07-17-2006 06:39 PM |
| How can I rename a file by its date? | warren | Linux software | 5 | 03-30-2006 12:11 PM |