home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
400-499
/
ff473.lzh
/
CNewsSrc
/
cnews_src.lzh
/
misc
/
histfrom
< prev
next >
Wrap
Text File
|
1990-12-22
|
589b
|
34 lines
#! /bin/sh
# histfrom - get history-file entries between two dates
# =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
. ${NEWSCONFIG-/usr/lib/news/bin/config}
PATH=$NEWSCTL/bin:$NEWSBIN:$NEWSPATH ; export PATH
umask $NEWSUMASK
case $# in
1) start="$1"
end="now"
;;
2) start="$1"
end="$2"
;;
*) echo "Usage: $0 startdate [enddate]" >&2
exit 2
;;
esac
if start=`/bin/getdate "$start"` && end=`/bin/getdate "$end"`
then
: okay
else
exit 1
fi
egrep ' .* ' $NEWSCTL/history | awk -F' ' '{
n = split($2, subf, "~")
arrived = subf[1]
if (arrived >= '$start' && arrived <= '$end')
print
}'