This commit is contained in:
Jean-Francois Dockes 2018-02-09 18:15:02 +01:00
parent 60c9f8229a
commit 9d10bd857f

View File

@ -5,15 +5,16 @@
if test "X$RECOLL_FILTER_FORPREVIEW" = "Xyes" ; then
sed \
-e '/^$/N;/^\n$/D' \
-e '/(bibdsk.*|month|bibsource|crossref|ee|groups|owner|pages|timestamp|url|file|price|citeulike.*|markedentry|posted-at)[[:space:]=]*/I d' \
-e '/(bibdsk.*\|month\|bibsource\|crossref\|ee\|groups\|owner\|pages\|timestamp\|url\|file\|price\|citeulike.*\|markedentry\|posted-at)[[:space:]=]*/I d' \
-e '/@[^{]*{/ d' \
\
-e 's/{//g' \
-e 's/},\?$//g' \
-e 's/^[ ]*//' \
-e 's/({|}|=)//g' \
< $1
else
sed -e '/(bibdsk.*|month|bibsource|crossref|ee|groups|owner|pages|timestamp|url|file|price|citeulike.*|markedentry|posted-at)[[:space:]=]*/I d' \
sed -e '/\(StaticGroup\|bibdsk.*\|month\|edition\|address\|query\|bibsource\|crossref\|ee\|groups\|owner\|pages\|timestamp\|url\|file\|price\|citeulike.*\|markedentry\|posted-at\)[[:space:]=]*/I d' \
-e '/@[^{]*{/ d' \
\
-e 's/^[^{]*{//g' \