From 0700104ffe4416dcc7d54795d2d7669cd8be231d Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 28 Jan 2019 17:58:01 -0800 Subject: [PATCH] supress outputing filenames --- upload_ics | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload_ics b/upload_ics index 39e3855..a093fbd 100755 --- a/upload_ics +++ b/upload_ics @@ -9,8 +9,8 @@ tempdir=$(readlink -f "$tempdir") trap "/bin/rm -f \"$tempdir\"/*.ics; rmdir \"$tempdir\"" QUIT INT EXIT for file in "$@"; do - bevents=($(grep -n BEGIN:VEVENT "$file" | cut -d: -f1)) - eevents=($(grep -n END:VEVENT "$file" | cut -d: -f1)) + bevents=($(grep -hn BEGIN:VEVENT "$file" | cut -d: -f0)) + eevents=($(grep -hn END:VEVENT "$file" | cut -d: -f0)) ehead=${bevents[0]} let "ehead -= 1" -- 2.39.2