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/monthly | |
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/monthly')
-rwxr-xr-x | etc/periodic/monthly/200.accounting | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/periodic/monthly/200.accounting b/etc/periodic/monthly/200.accounting index 10a65d1..0be8c32 100755 --- a/etc/periodic/monthly/200.accounting +++ b/etc/periodic/monthly/200.accounting @@ -39,7 +39,7 @@ case "$monthly_accounting_enable" in echo "" echo "Doing login accounting:" - rc=$(ac -p -w $W.0 | sort -nr +1 | tee /dev/stderr | wc -l) + rc=$(ac -p -w $W.0 | sort -nr -k 2 | tee /dev/stderr | wc -l) [ $rc -gt 0 ] && rc=1 fi [ $remove = YES ] && rm -f $W.0;; |