Skip to content

Instantly share code, notes, and snippets.

@Rich86man
Created July 3, 2018 19:20
Show Gist options
  • Save Rich86man/059cb3b8219a66b4954130ebff2e4660 to your computer and use it in GitHub Desktop.
Save Rich86man/059cb3b8219a66b4954130ebff2e4660 to your computer and use it in GitHub Desktop.
How do I unique and sort my pasteboard
IO.popen('pbcopy', 'w') { |f| f << `pbpaste`.split('\n').uniq.sort.join('\n') }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment