In article <1990Aug8.214539.1264 at watserv1.waterloo.edu> I wrote: >In a sh script, it can be done by: > >if [ `date | sed 's/^... ... *\([^ ]*\) .*/\1/'` -le 7 ]; then > ... >fi This is better done using awk: if [ `date | awk '{print $3}'` -le 7 ]; then ... fi -- David Canzi