home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
linuxmafia.com 2013
/
2013.06.linuxmafia.com
/
linuxmafia.com
/
pub
/
linux
/
utilities-general
/
lastday
< prev
next >
Wrap
Text File
|
2005-04-10
|
464b
|
15 lines
#!/bin/bash
# Karsten M. Self Mon Mar 21 16:57:30 PST 2005
# Free use, distribution, and modification with no restrictions, granted.
# NO WARRANTY
# ------------------------------------------------------------------------
# Test if today is the last given weekday of month
# ------------------------------------------------------------------------
export PATH=3D/usr/bin:/bin
if [ $( date -d '+ 7 days' +%-d) -lt $( date +%-d ) ]
then true
else false
fi