![]() |
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 week number of the month | sbasetty | Shell Programming and Scripting | 21 | 11-06-2006 06:13 PM |
| Every week one dir - How to | redlotus72 | UNIX for Dummies Questions & Answers | 1 | 10-17-2006 04:54 AM |
| Execute a script on 4 week of the month | tbdo88 | Shell Programming and Scripting | 1 | 09-30-2006 01:08 PM |
| setting up cron job for month end week report | Bhups | UNIX for Dummies Questions & Answers | 3 | 04-07-2006 06:42 AM |
| How to identify week-1 and week-2 | csaha | Shell Programming and Scripting | 1 | 02-16-2006 05:24 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Getting week in month.???
Hi All,
I have a tricky problem. I need to write a shell script (bash) which identifies which week off the month it is. I need to create a partition each week. So for the first week (where first of the week is Monday) of March i want to create partition_march_01 and for the second partition partition_march_02 etc. I also need to get the exact date into a variable which I can use an marker. I have been looking at date and +%w which will give me the first day of the week, and +%W which will get me the number of week in the year. Is there a straight forward command I've missed that will tell me that its week 3 of May? Thanking you all inadvance, ![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|