10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have the below requirement ,
if i give the week number for ex 41 i need to get the date for Monday and thursday for this given week. my expected output is 13/10/2014 (Monday's date) and 16/10/2014 (Thursday's date)
I am using GNU LINUX .
Pls help me with your thoughts.
Thanks in... (7 Replies)
Discussion started by: mohanalakshmi
7 Replies
2. Shell Programming and Scripting
Hi,
How can we get the week number from any paricular date. lets say date is 20120404 (YYYYMMDD) then how to get the week number?
date +%W --- Thic command gives the week number for current date only.
Thanks. (13 Replies)
Discussion started by: 46019
13 Replies
3. Shell Programming and Scripting
Hi,
I tried to find the solution on the forum without success.
datecalc from Perderabo doesn't solve my problem.
I would like to know how to do the same thing that date +%U but for a specific date.
For example:
2011 08 27
=> 39
Thinks a lot (8 Replies)
Discussion started by: Castelior
8 Replies
4. UNIX for Dummies Questions & Answers
I have looked around on the internet and still i am no wiser as to how to show the number of files in a directory that have been accessed this week and also that as a percentage.
Any help would be much appreciated. (5 Replies)
Discussion started by: RAFC_99
5 Replies
5. UNIX for Dummies Questions & Answers
I have two sets of tapes for each week days.
Mon_Set_A ____________Tue_Set_B
Tue_Set_A ____________ Tue_Set_B
Wed_Set_A ___________ Wed_Set_B
Thr_Set_A ____________ Thr_Set_B
Fri_Set_A _____________ Fri_Set_B
I have script that does cold backup of database and then back up to tape.
... (1 Reply)
Discussion started by: Paul.S
1 Replies
6. Shell Programming and Scripting
Hi Friends,
Can you help me with this,
I would like to get the week number of the "Monday",
Say if we run on first week of november it should give me output as "05" and "10" i.e it says the monday falls on 5th week of october.
If we run on the second week of november it should give me "01"... (8 Replies)
Discussion started by: sbasetty
8 Replies
7. UNIX for Dummies Questions & Answers
I need to make programmatically
one dir every week Saturday, like 102106, 102806, ...
10 ==> month
21 ==> Saturdays
06 ==>Yr
Any idea? (1 Reply)
Discussion started by: redlotus72
1 Replies
8. Shell Programming and Scripting
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... (1 Reply)
Discussion started by: csaha
1 Replies
9. Shell Programming and Scripting
Hi All,
can any one help me fix the error in this - i am still a novice in shell programming. I got this code after some googling now the code works with all the dates( as much as i know) except for 08 th and 09th of every month. can any one of you please help me fix this issue?
Thanks in... (11 Replies)
Discussion started by: ahmedwaseem2000
11 Replies
10. Shell Programming and Scripting
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... (1 Reply)
Discussion started by: Zak
1 Replies