Skip to content

Instantly share code, notes, and snippets.

@hypevhs
Created November 29, 2021 19:15
Show Gist options
  • Save hypevhs/6a6d88d1e4f36870973a49de5b8f7375 to your computer and use it in GitHub Desktop.
Save hypevhs/6a6d88d1e4f36870973a49de5b8f7375 to your computer and use it in GitHub Desktop.
join lines on long fields in google-calendar-exported vCal (.ics) file
# demonstrate pattern
echo -e 'a:a\n a\nb:bb\nc:c\n c' | perl -0777 -p -e 's/\n //g' | od -c
# input:
# a:a
# a
# b:bb
# c:c
# c
# outputs:
# a:aa
# b:bb
# c:cc
# apply to ics file
perl -0777 -p -i.original -e 's/\r\n //g' lololololol.ics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment