![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| getting previous filename | shary | Shell Programming and Scripting | 3 | 03-20-2008 05:50 AM |
| Previous Command | vskr72 | UNIX for Advanced & Expert Users | 0 | 04-19-2007 07:51 PM |
| Seeing previous command | JackieChan | UNIX for Dummies Questions & Answers | 4 | 06-02-2006 10:35 AM |
| getting the previous command | luft | UNIX for Dummies Questions & Answers | 5 | 08-18-2005 12:02 PM |
| Value of previous row using awk | videsh77 | Shell Programming and Scripting | 2 | 02-18-2005 01:23 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
next/Previous business day
Hello,
Can you please help me how do i get previous and next working day of the week for a given date excluding saturday and sunday. Ex: if the given date is monday, i should get friday and tuesday's date if the given date is friday, i should get thrusday and monday's date. Thanks, Sateesh |
|
|||||
|
Are you open to using datecalc? This will do the job, but you will have to wrap the script in another script of your own.
In your script, just check if day is Friday or Monday. Then accordingly call datecalc with the correct +/- parameters. If not, just call datecalc with +1 and -1 to get tomorrows and yesterday's date. You can check the datecalc script for more help. |
|
||||
|
previous bussiness date
Hello,
I am also having the same problem. I want the previous bussiness date. But If monday comes it should give fridays date. IN the same way if holiday comes in between, it should run the exact previous date. Please help. It is urgent........... |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|