/usr/bin/postats is in potool 0.16-3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #!/bin/bash
# Copyright (C) 2000-207 Marcin Owsiany <porridge@debian.org>
if [ "$1" = "-f" ] ; then
fuzzy=1
shift
fi
if [ $# -gt 0 ]; then
files=$*
else
files=*.po
fi
(
ntr=0
nall=0
for a in $files; do
[ -f $a ] || continue
tr=`potool $a -ft -s 2>/dev/null`
[ $? -eq 0 ] || { echo "Error: \"potool $a -ft -s\" failed"; continue ; }
all=`potool $a -s 2>/dev/null`
[ $? -eq 0 ] || { echo "Error: \"potool $a -s\" failed"; continue ; }
fuzzy=`potool $a -ff -s 2>/dev/null`
[ $? -eq 0 ] || { echo "Error: \"potool $a -ff -s\" failed"; continue ; }
if [ -n "$fuzzy" ] ; then
printf '%-24s - %5s/%3s/%-5s (%3s%%) -%s\n' ${a} ${tr} ${fuzzy} ${all} $((${tr}*100/${all})) $(($all-$tr))
else
printf '%-24s - %5s/%-5s (%3s%%) -%s\n' ${a} ${tr} ${all} $((${tr}*100/${all})) $(($all-$tr))
fi
ntr=$((${ntr}+${tr}))
nfuzzy=$((${nfuzzy}+${fuzzy}))
nall=$((${nall}+${all}))
done
if [ -n "$fuzzy" ] ; then
[ $nall -gt 0 ] && printf '%-24s - %5s/%3s/%-5s (%s%%) -%s\n' "x(100%)x" ${ntr} ${nfuzzy} ${nall} $((${ntr}*100/${nall})) $(($nall-$ntr))
else
[ $nall -gt 0 ] && printf '%-24s - %5s/%-5s (%s%%) -%s\n' "x(100%)x" ${ntr} ${nall} $((${ntr}*100/${nall})) $(($nall-$ntr))
fi
) | sort -nt'(' -k 1
|