9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
Can you please let me know how to get the yesterday's date of the given date if the given date is Sunday?
I can't use GNU. I have the code to get the yesterday's date based on the system date.
Thanks (5 Replies)
Discussion started by: shash
5 Replies
2. Shell Programming and Scripting
Hi,
Please can someone help me in getting first sunday date of a month.
i_year=`date +%Y`
ny_first_sun_nov=`cal 10 $i_year | sed '/^$/d' |head -3 |tail -1| rev | cut -c1`
This works good if the first sunday has a value but not if it is blank and first sunday falls on second week.
... (17 Replies)
Discussion started by: infyanurag
17 Replies
3. UNIX for Advanced & Expert Users
Hi Am using unix Ksh
I have the two dates
DATE1=01/01/2013
DATE2=11/02/2013
In this two dates i need the output as count of sunday
sunday=6
Can anyone help me pls!!! (1 Reply)
Discussion started by: Venkatesh1
1 Replies
4. UNIX for Advanced & Expert Users
Hi Am using Unix Ksh
I have a two date input as
DATE1=02/12/2012
DATE2=30/12/2012
I Need the output as only sunday date
02/12/2012
09/12/2012
16/12/2012
23/12/2012
30/12/2012
can anyone pls help me..
thanks in advance... (2 Replies)
Discussion started by: Venkatesh1
2 Replies
5. Shell Programming and Scripting
Hi again,
I need to delete stats on every 2nd Sunday and I've try the following codes but unfortunately it didn't work. I'll really appreciate as always for your help. I'm on FreeBSD 8.2-STABLE.
altsun.sh script:
#!/bin/sh
day = $(`date '+%e'`)
if then
rm... (9 Replies)
Discussion started by: user`
9 Replies
6. UNIX for Dummies Questions & Answers
I was to schedule a script in a crontab after every 15 days specically on every 2nd Sunday.
I know that i can schedule on basis of weekdays, but can it be done by skipping in between???:wall: (5 Replies)
Discussion started by: masquerer
5 Replies
7. UNIX for Dummies Questions & Answers
Hello, guys !
I tried to compile PHP on one of my servers (LAMP). Everything worked fine only that I tried to set my march to pentium4 and it did not accepted it. It told me that it is a x86_64 architecture and pentium4 is not supported (I don't remember the exact error, but this was the ideea).... (2 Replies)
Discussion started by: Sergiu-IT
2 Replies
8. Solaris
Hi ,
I have a date parameter passed in YYYYMMDD format , how can I check whether it is Sat or Sun on Solaris box , as we can do the same easily on linux box by using date -d YYYYMMDD '+a' .
Any pointres will be really helpful . (5 Replies)
Discussion started by: harpreetanand
5 Replies
9. Shell Programming and Scripting
Hi All,
I have to kick off a script on every Monday to get some data from database for last week (Sunday thru Saturday).
If its Monday (12/12/2005)
Begin date will be Sunday - 12/4/2005
End date will be Saturday - 12/10/2005
The script might not kick off on some Mondays.
So my... (2 Replies)
Discussion started by: skymirror
2 Replies