Child: [5b0925] (diff)

Download this file

dates.sh    25 lines (19 with data), 571 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
topdir=`dirname $0`/..
. $topdir/shared.sh
initvariables $0
# 2nd one result
(
# no results because of the negative clause
recollq date:/2009 -1 datetest
# one result: the 2008 file
recollq date:/2009 datetest
# one result: 2008 file
recollq date:2007-01-01/2010-02-09 datetest
# 2 results : files from 10 and 11 march 2010
recollq date:2010-03-10/P10D datetest
# 0 result: no such term
recollq date:2010-03-10/P10D datetestnotermsmatch
) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout
diff -w ${myname}.txt $mystdout > $mydiffs 2>&1
checkresult