Hi ,
I am relatively new to unix...
Can u pls help me out to find out if the first day of the month is a working day ie from (Monday to Friday)...using Date and If clause in Korn shell..
This is very urgent.
Thanks for ur help... (7 Replies)
I know I can't schedule this in cron and would have to write a wrapper around my script and schedule it in cron ....but not sure how do to this?
How do I exclude Monday if the 2nd day of the month falls on a Monday?
Thanks.
I tried this:
0 0 2 * 0,2-6 command
And I know this doesnt... (2 Replies)
Hi All,
I need to find the previous month last day minus one day, using shell script. Can you guys help me to do this.
My Requirment is as below:
Input for me will be 2000909(YYYYMM)
I need the previous months last day minus 1 day timestamp. That is i need 2000908 months last day minus ... (3 Replies)
I am using the code below modified from a post I saw here regarding having the script write out future dates. The problem is that instead of making 8/1 it makes 7/32! Please help!
yy=`date +%Y`
mm=`date +%m`
dd=`date +%d`
echo "Today is : $yy $mm $dd"
#!/usr/bin/ksh
date '+%m... (5 Replies)
Hello All,
I am trying to come up with a shell script to count a specific word in a logfile on each day of this month, last month and the month before. I need to produce this report and email it to customer.
Any ideas would be appreciated! (5 Replies)
Hello Experts,
I have a script which i want to run the on last day of every month.
let say I have backup.sh script which i want to run it every month last day.
Can anyone please help :confused:
thanks (4 Replies)
Hello Guys,
I have a questions regarding running a shell script every second working day each month.
I have no clue how solve this problem :wall:.
Important is that it has to be the second working (Mo-Fr).
Example: If 1st and 2nd Days of month are Sat and Sun the script must run on 4th day... (5 Replies)
hello,
I have many files called day001, day002, day003 and I want to rename them by day20070101, day20070102, etc.
I need to do it for several years and leap years as well.
What is the best way to do it ?
Thank you. (1 Reply)
I am looking for a unix script which could run a job on 2, 4 and 7 working day of the month.
if the days are falling on the saturday/sunday. it should run on the next day.
Thank you.. (9 Replies)
Discussion started by: tradingspecial
9 Replies
LEARN ABOUT DEBIAN
hdate_struct
hdate_struct(3) libhdate C language hdate_struct(3)NAME
hdate_struct -
libhdate Hebrew date struct
SYNOPSIS
#include <hdate.h>
Data Fields
int hd_day
int hd_mon
int hd_year
int gd_day
int gd_mon
int gd_year
int hd_dw
int hd_size_of_year
int hd_new_year_dw
int hd_year_type
int hd_jd
int hd_days
int hd_weeks
Detailed Description
libhdate Hebrew date struct
Field Documentation
int hdate_struct::hd_day The number of day in the hebrew month (1..31).
int hdate_struct::hd_mon The number of the hebrew month 1..14 (1 - tishre, 13 - adar 1, 14 - adar 2).
int hdate_struct::hd_year The number of the hebrew year.
int hdate_struct::gd_day The number of the day in the month. (1..31)
int hdate_struct::gd_mon The number of the month 1..12 (1 - jan).
int hdate_struct::gd_year The number of the year.
int hdate_struct::hd_dw The day of the week 1..7 (1 - sunday).
int hdate_struct::hd_size_of_year The length of the year in days.
int hdate_struct::hd_new_year_dw The week day of Hebrew new year.
int hdate_struct::hd_year_type The number type of year.
int hdate_struct::hd_jd The Julian day number
int hdate_struct::hd_days The number of days passed since 1 tishrey
int hdate_struct::hd_weeks The number of weeks passed since 1 tishrey
Author
Generated automatically by Doxygen for libhdate C language from the source code.
Version 1.4 Sun Jan 8 2012 hdate_struct(3)