#! /bin/sh
# extract staleness in days from $NEWSCTL/explist

# =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
. ${NEWSCONFIG-/usr/local/lib/news/config}
PATH=$NEWSCTL/bin:$NEWSBIN:$NEWSPATH; export PATH

exec sed -n '/^\/expired\//{
s/^[^	 ]*[	 ][	 ]*[^	 ]*[	 ][	 ]*\([^	 .]*\)[	 .].*/-o \1/p
q
}' $NEWSCTL/explist
