[wplug] Determine the "Last Full Week" of the month

Alheid, Gregory alheidgj at upmc.edu
Wed Oct 20 10:17:37 EDT 2010


The IF STATEMENT  was "joined" with the comment above
> # Run every Sunday

> # Months w 31 days
> bigmth=" Jan Mar May Jul Aug Oct Dec"

> # Current month
> mth=$( date +%b )

> demth=$( echo $bigmth | egrep $mth )

> # Check to see if this is a month that has 31 days
if [ "x$demth" != "x" ] ; then  # Should be on line by itself, blame MS Exchange

>  # get todays date
>  day=$( date +%d )
  
>  # Ck to see if between 19th and 25th
>  if [[ $day -gt 18 || $day -lt 26 ]] ; then

>    echo "testing: execute script"

>  fi

fi




More information about the wplug mailing list