]> git.donarmstrong.com Git - bin.git/blobdiff - upload_ics
supress outputing filenames
[bin.git] / upload_ics
index 39e38555a0f6e1c3c4c2c99e5fe8189ef1c3d2af..a093fbdb4d932d1e9c151818d30f7bd178bcd874 100755 (executable)
@@ -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"