How To Read Multiple Lines of User Input from the Command Line in Perl

Published Date Author: , Posted October 9th, 2019 at 11:59:50am

Use Case: Export Apple Reminders from MacOS application to cleaned plain text, i.e. remove unwanted spaces, blank lines and square brackets

PROCEDURE

  1. Click on a single item in the MacOS Reminders app list
  2. Select All (either Command-a or use Edit->Select All)
  3. Copy (either Command-c or use Edit->Copy)
  4. Open Terminal
  5. Run cleanme
  6. Paste the copied reminders into the Terminal window, then press Control-D
  7. The script will output the cleaned list as plaintext

EXAMPLE

Here is the Perl code I used to do it:

No comments as yet.

Leave Your Comment  Leave a comment

All fields marked with "*" are required.