diff options
author | ache <ache@FreeBSD.org> | 2002-09-24 18:53:46 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2002-09-24 18:53:46 +0000 |
commit | ac09299ab907c280480d1971accae61fad3e7bad (patch) | |
tree | bcd94ae69ce042611acfd5680f7aa9edbcb0ed20 /etc/periodic/daily | |
parent | f827f40f52b12dea84f6f0b7d126604815c2c149 (diff) | |
download | FreeBSD-src-ac09299ab907c280480d1971accae61fad3e7bad.zip FreeBSD-src-ac09299ab907c280480d1971accae61fad3e7bad.tar.gz |
Make it work with POSIX sort (POS arg).
All old sorts understand -k too.
Diffstat (limited to 'etc/periodic/daily')
-rwxr-xr-x | etc/periodic/daily/470.status-named | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/periodic/daily/470.status-named b/etc/periodic/daily/470.status-named index e8e1365..3050747 100755 --- a/etc/periodic/daily/470.status-named +++ b/etc/periodic/daily/470.status-named @@ -13,7 +13,7 @@ fi catmsgs() { find /var/log -name 'messages.*' -mtime -2 | - sort -t. -r -n +1 -2 | + sort -t. -r -n -k 2,2 | xargs zcat -f [ -f /var/log/messages ] && cat /var/log/messages } |