From aa4ab18ee326642e1cce408eb1b9a062e0a0960c Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Fri, 30 Jun 2023 11:58:09 +0530 Subject: vtoc: check for ',' in $name to not break the output csv file --- bin/vtoc.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/vtoc.sh b/bin/vtoc.sh index f2be2cb..fc69122 100755 --- a/bin/vtoc.sh +++ b/bin/vtoc.sh @@ -35,6 +35,11 @@ strings "$vcf" | while read -r line; do case "$line" in 'FN:'*) name="${line##*:}" + case "$name" in + *,*) + name="$(printf "%s" "$name" | tr -d ',')" + ;; + esac ;; 'TEL;TYPE='*':'*) # avoid repetitions in same vacrd entry -- cgit v1.2.3