I am trying to find a file and then edit the text within these files. This is what I have so far, but sadly I'm not that well versed. Help please?
grep -rl "wrongtext" ~/Library/Calendars /Users/foo/Library/Calendars/foo.caldav/foo.calendar/Info.plist /Users/foo/Library/Calendars/foo.calendar.caldav/foo.calendar.calendar/Info.plist /Users/foo/Library/Calendars/foo.calendar.caldav/Info.plist /Users/foo/Library/Calendars/foo.calendar.caldav/Info.plist /Users/foo/Library/Calendars/CalendarCache
sed -i '' 's/wrongtext/righttext/g’