Sponsored Content
Top Forums Shell Programming and Scripting Need help, Every friday in a month Post 302099147 by bishweshwar on Saturday 9th of December 2006 05:17:36 AM
Old 12-09-2006
Quote:
Originally Posted by reborg
cal $1 $2 | awk 'NR >2 { print substr($0,16,2)}'
I couldn't get how this command works. Can you just explain it's function......
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how can i find the third friday of each month?

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)
Discussion started by: leslie02
10 Replies

2. Shell Programming and Scripting

Last friday of every month

Hi, I need to get the date of last friday of every month. how can i achieve this ? please guide me. Thanks in advance (3 Replies)
Discussion started by: apsprabhu
3 Replies

3. UNIX for Dummies Questions & Answers

print previous month (current month minus 1) with Solaris date and ksh

Hi folks month=`date +%m`gives current month Howto print previous month (current month minus 1) with Solaris date and ksh (7 Replies)
Discussion started by: slashdotweenie
7 Replies

4. Shell Programming and Scripting

Script to counting a specific word in a logfile on each day of this month, last month etc

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)
Discussion started by: pnara2
5 Replies

5. Shell Programming and Scripting

cron job to run on second to last friday each month

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)
Discussion started by: lupin..the..3rd
0 Replies

6. UNIX for Dummies Questions & Answers

[Solved] Cron - job to run every 3rd Friday of the month only

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)
Discussion started by: kaibiganmi
2 Replies

7. Red Hat

How to find/display out last Friday's date of the month?

Hello, Can you please help me find/display out last Friday's date of the month using command in Unix/Linux (3 Replies)
Discussion started by: sunnysthakur
3 Replies

8. Shell Programming and Scripting

How to add decimal month to some month in sql, php, perl, bash, sh?

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

9. Shell Programming and Scripting

Need last month files after 10th of every month

Hi, I need all file names in a folder which has date >= 10th of last month, Example : files in folder AUTO_F1_20140610.TXT BUTO_F1_20140616.TXT CUTO_F1_20140603.TXT FA_AUTO_06012014.TXT LA_AUTO_06112014.TXT MA_AUTO_06212014.TXT ZA_AUTO_06232014.TXT Output: AUTO_F1_20140610.TXT... (9 Replies)
Discussion started by: nani1984
9 Replies

10. Linux

Bash Display First Friday of the next month

Hello, I need to find the date of next first Friday of the month and set as a variable in a bash script ie - FIRSTFRIDAY=$(date -dfirst-friday +%d) 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... (7 Replies)
Discussion started by: summerdays
7 Replies
WMCLOCKMON-CAL(1)						   User Commands						 WMCLOCKMON-CAL(1)

NAME
wmclockmon-cal - A calendar to use with wmclockmon SYNOPSIS
wmclockmon-cal [-h] [-v] DESCRIPTION
This manual page documents briefly the wmclockmon-cal command. wmclockmon-cal is a program that displays a calendar and TODO list with wmclockmon. A calendar/TODO list can contain special lines that will be taken as alarms for wmclockmon. An alarm line MUST begin with an @, then con- tain the time (hours and minutes un 24h format) and, at least, the message, such as : @ 09:20 Prepare for RDV hairdresser at 9:30... OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. -h, --help show help text and exit. -v, --version show program version and exit. FILE
wmclockmon-cal uses files in ~/.wmclockmoncal/. Each file contain a day's TODO list. Calendar files are all in form of yyyy-mm-dd. Yearly files are in form of XXXX-mm-dd and monthly files are in form of XXXX-XX-dd. There are currently no weekly files since weekly alarms are in wmclockmon's configuration file. SEE ALSO
wmclockmon(1), wmclockmon-config(1) AUTHOR
WMClockMon-cal was written by Thomas Nemeth <tnemeth@free.fr>. wmclockmon-cal February 2004 WMCLOCKMON-CAL(1)
All times are GMT -4. The time now is 08:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy