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

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

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