I need to find the date of next first Friday of the month and set as a variable in a bash script
ie -
I know date -dfirst-friday doesn't work, but unsure if I can use this / cal + awk or something else to find the right date of the following first Friday
hi,
i m new to unix.
I have been trying to find all the files in my home directory and its subdirectories that are created in the month of september.
Can anyone please help me with this??? (1 Reply)
I am trying to write a script that shows every Friday in a month.
I used
cal $1 $2 | grep -v "^$" | awk '{print $6}'
It doesn't work for the frist week of Friday because calendar command output has some spaces in the first line and awk '{print $6}' doesn't work. Anybody help
me with this... (3 Replies)
Help please! I need to read the calendar and put the date of the third Friday of each month into a variable for comparison in an "if" statement. How would I do this?
Thnx,
leslie02 (10 Replies)
Hello - I have one question regarding the date. I wanted to display the month name for previous day. The output should be as follows...
5-Feb-09 => February
1-Feb-09 => January
28-Feb-09=> February
Here is the code i am using to get the output....
date '+%m %d %Y' |
{
read MONTH DAY... (4 Replies)
I needed a cron job to run on the second to last friday of every month. Our servers are running HP-UX, and the HP-UX date command is pretty basic and does not have all of the fancy options that Linux date command does, and it does not have the ability at all to return future dates. So I had to... (0 Replies)
Hi Expert
Please help me to set a cron job schedule,
Ihave a job that run every 3rd Friday of the month at 1030am.
I tried to set up like this, but the job still runs every friday at 1030am.
I want the job to run every 3rd Friday of the month at 1030am only
30 10 15,16,17,18,19,20,21... (2 Replies)
Hello,
i`m looking for some way to add to some date an partial number of months, for example to 2015y 02m 27d + 2,54m
i need to write this script in php or bash or sh or mysql or perl in normal time o unix time
i`m asking or there are any simple way to add partial number of month to some... (14 Replies)
Discussion started by: bacarrdy
14 Replies
LEARN ABOUT OSX
widget_calendar
widget_calendar(n) widget::calendar Megawidget widget_calendar(n)
__________________________________________________________________________________________________________________________________________________NAME
widget_calendar - widget::calendar Megawidget
SYNOPSIS
package require Tcl 8.4
package require Tk 8.4
package require widget ?3.0?
widget::calendar pathname ?options?
_________________________________________________________________DESCRIPTION
This package provides a calendar megawidget (snidget).
widget::calendar pathname ?options?
WIDGET OPTIONS -command
A script to evaluate when a date was selected.
-dateformat
The format of the date that is returned. Default: %m/%d/%Y.
-firstday
Set first day the week, Either sunday or monday. It defaults to monday.
-font Select the font used in the widget. It defaults to Helvetica 9.
-highlightcolor
Selects the background color for the day that has been selected. Default: #FFCC00
-language
Specify language of the calendar contents. The language is specified by abbreviations of the languge, for example: en - english, de
- german ... It defaults to en.
Supported languages: en, de, fr, it, es, pt, ru, sv, zh, fi
-shadecolor
Selects the color of the parts that have a shaded background. Default: #888888
-showpast
Specify if the past shall be shown. It is a boolean value and defaults to 1.
-textvariable
Specifies the name of a variable whose value is linked to the entry widget's contents. Whenever the variable changes value, the
widget's contents are updated, and vice versa.
WIDGET COMMAND
pathname get ?what?
Returns a part of the selected date or 'all'. The argument what selects the part. Valid values for what are: day, month, year and all.
'all' is the default and returns the complete date in the format given with -dateformat.
DEFAULT BINDINGS
On creation of the calendar widget the following bindings are installed.
o Up - Move to week before current date
o Down - Move to week after current date
o Left - Move to day before current date
o Right - Move to day after current date
o Control-Left - Move to month before current date
o Control-Right - Move to month after current date
o Control-Up - Move to year before current date
o Control-Down - Move to year after current date
EXAMPLE
package require widget::calendar ; # or widget::all
set t [widget::calendar .t]
pack $t -fill x -expand 1
KEYWORDS
megawidget, snit, widget
widget 0.93 widget_calendar(n)