#!/bin/sh

TMP=/tmp/$$
trap "rm -f $TMP" 0 1 2 5 15

cat >$TMP <<EOF
date[^a-z]
\<date\>
time[^a-z]
\<time\>
HH
YY
-jan-
-mon-
%02d[:/-]%02d
julian
\<day\>
\<month\>
\<year\>
[^a-z]year\>
timestamp
\<5\>
\<5s\>
\<[0]\?5d\>
\<9\>
\<9s\>
EOF

egrep -i -n -f $TMP $*
