while read cardfile; do
cachefile="${_DATA}/cache/${cardfile##*/}.cache"
- # if [ -s "$cachefile" -a "$cachefile" -nt "$cardfile" \
- # -a "$cachefile" -nt "${_EXEC}/cards" ]; then
if [ -s "$cachefile" -a "$cachefile" -nt "$cardfile" ]; then
cat "$cachefile"
- else
+ elif [ -s "$cardfile" ]; then
print_card "$cardfile" |tee "$cachefile"
fi
done
filter_cards(){
local filter f fex='x;p;'
+ local upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; '
filter="$(printf %s "${filter}" \
| sed -E 's;[]\/\(\)\\\$\?\.\+\*\;\[\{\}];\\&;g;