Created
April 19, 2018 21:16
-
-
Save beezly/52567aa8210fa16eae74a556ef14f0da to your computer and use it in GitHub Desktop.
Delete One Password Items Duplicated by Title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
op list items | jq -r 'group_by(.overview.title) | .[] | select(length > 1) | min_by(.updatedAt) | .uuid' | xargs -n 1 op item delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment