esac
done
+ n=$(printf %s "$values[N]"
+ | sed -rn 's:^([^;]*)(;[^;]*)(;[^;]*)?(;[^;]*)?(;[^;]*)?$:4 2 3 1 5:gp'
+ | sed -r 's:,: :;s:;: :g;s: +: :g;s:^ $::;'
+ )
+ fullname="${n:-${values[FN]:-${values[NICKNAME]}}}"
+
tel=''
for n in TEL TEL{0..10}; do if (echo "$values[$n]" |grep -Eq '[0-9]'); then
[ -n "$tel" ] && tel="$tel\\newline $values[$n]" || tel="$values[$n]"
fi; done
+
note=''
for n in NOTE NOTE{0..10}; do if [ -n "$values[$n]" ]; then
[ -n "$note" ] && note="$note\\newline $values[$n]" || note="$values[$n]"
fi; done
- echo -E "$values[FN] & $values[BDAY] & $tel & $note"
+ echo -E "$fullname & $values[BDAY] & $tel & $note"
}
get_dates() { #Parameter: Calendarfile