07-04-2008
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
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: LAY
3 Replies
2. Shell Programming and Scripting
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
3. UNIX for Dummies Questions & Answers
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
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
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
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
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
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
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
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
LEARN ABOUT LINUX
update-rcconf-guide
UPDATE-RCCONF-GUIDE(8) Debian GNU/Linux UPDATE-RCCONF-GUIDE(8)
NAME
update-rcconf-guide - Create default guide file for rcconf
SYNOPSIS
update-rcconf-guide
DESCRIPTION
Update-rcconf-guide creates the default guide file which rcconf uses.
Update-rcconf-guide searches the package names corresponding to each service file in /etc/init.d directory from dpkg info
files(/var/lib/dpkg/info/*.list) and get the description of these packages using apt-cache. Update-rcconf-guide uses Short-Description in
priority to the description if service files has Short-Description field. Update-rcconf-guide writes those results to
/var/lib/rcconf/guide.default file.
You can write your own guide in user guide file(/var/lib/rcconf/guide) by hand. Rcconf refers Guides in /var/lib/rcconf/guide before those
in /var/lib/rcconf/guide.default.
If you install some packages after executed update-rcconf-guide, you need to re-create this file using update-rcconf-guide so as to refresh
guide.default that includes new guides for installed new services.
Notice: update-rcconf-guide was not executed when you installed rcconf
package.
FILE
/var/lib/rcconf/guide.default
Guide File update-rcconf-guide generates.
/var/lib/rcconf/guide
Guide File user(Administrator) can define.
SEE ALSO
rcconf(8)
AUTHOR
Atsushi KAMOSHIDA <kamop@debian.org>
perl v5.10.1 2009-01-21 UPDATE-RCCONF-GUIDE(8)