diff options
author | ru <ru@FreeBSD.org> | 2003-11-07 21:55:35 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2003-11-07 21:55:35 +0000 |
commit | cb67907c73f1f0bb582ab8ec4735fceb8231d9fd (patch) | |
tree | b73ec2fd6f52f8afe1d51a3002bfce28e112d392 /etc/periodic/daily | |
parent | 2be76da54f022558fc156707d68f05629b0f8b22 (diff) | |
download | FreeBSD-src-cb67907c73f1f0bb582ab8ec4735fceb8231d9fd.zip FreeBSD-src-cb67907c73f1f0bb582ab8ec4735fceb8231d9fd.tar.gz |
Use %e in the date(1) format string to eliminate the sed(1) command.
Diffstat (limited to 'etc/periodic/daily')
-rwxr-xr-x | etc/periodic/daily/460.status-mail-rejects | 2 | ||||
-rwxr-xr-x | etc/periodic/daily/470.status-named | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/periodic/daily/460.status-mail-rejects b/etc/periodic/daily/460.status-mail-rejects index 596af49..34f1df2 100755 --- a/etc/periodic/daily/460.status-mail-rejects +++ b/etc/periodic/daily/460.status-mail-rejects @@ -32,7 +32,7 @@ case "$daily_status_mail_rejects_enable" in echo echo Checking for rejected mail hosts: - start=`date -v-1d '+%b %d' | sed 's/0\(.\)$/ \1/'` + start=`date -v-1d '+%b %e'` n=$(($daily_status_mail_rejects_logs - 2)) rc=$({ while [ $n -ge 0 ] diff --git a/etc/periodic/daily/470.status-named b/etc/periodic/daily/470.status-named index daedac0..5607bfb 100755 --- a/etc/periodic/daily/470.status-named +++ b/etc/periodic/daily/470.status-named @@ -29,7 +29,7 @@ case "$daily_status_named_enable" in echo echo 'Checking for denied zone transfers (AXFR and IXFR):' - start=`date -v-1d '+%b %d' | sed 's/0\(.\)$/ \1/'` + start=`date -v-1d '+%b %e'` rc=$(catmsgs | fgrep '^'"$start"'.*named\[[[:digit:]]\+\]: denied [AI]XFR from \[.*\]\.[[:digit:]]\+ for' | \ sed -e 's/.*: denied [AI]XFR from \[\(.*\)\]\.[[:digit:]]* for "\(.*\)".*$/\2 from \1/' |