The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
Get Day of Week from date vpapaiya HP-UX 5 03-07-2008 04:47 PM
week number alisevA3 UNIX for Dummies Questions & Answers 2 10-31-2007 05:01 AM
Every week one dir - How to redlotus72 UNIX for Dummies Questions & Answers 1 10-17-2006 04:54 AM
Changing First Day Of The Week? fowlerleftfoot UNIX for Dummies Questions & Answers 2 08-28-2006 11:16 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 02-16-2006
csaha's Avatar
csaha csaha is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 81
How to identify week-1 and week-2

Hello Friends

I have three dirs

1. /home/main-bkup
2. /home/bkup-week1
3. /home/bkup-week2

Now we copy backups in 1 initially, then on 1st week we copy few content of 1 into 2 and then run some scripts on that. Then in 2nd week we keep 2 untouched and do the same thing in 3.

So I need to identify the way in my script to tell the script which shound be considered as week1 and which is week2. For simplicity say if this week (week of FEB 12 to FEB 18) is 1st week then next week (week of FEB 19 to FEB 25) will be week2. And after that week 1 will come back again, and so on ...

Now how should I tell the script to identify which is week 1 and week 2 and then week 1 again, so on ...

Ideas please ...

Thanks a lot to all in advance
C Saha
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0