Clean up a pasted list

Take a list copied from an email or a spreadsheet, drop the empty lines and the doubles, and put it in order.

The steps

  1. Drop the empty lines. Paste the list or add the file. Save the result to go on. Remove empty lines
  2. Keep each line once. Lines that appear twice are kept once. Save the result. Remove duplicate lines
  3. Put it in order. Sort from A to Z, then copy the list or save it. Sort lines alphabetically

One tidy list, each line once.