home *** CD-ROM | disk | FTP | other *** search
- #!/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
-