Created
January 19, 2019 03:15
-
-
Save jesseditson/f7f798cf43863dcef14b61b0a8068ca4 to your computer and use it in GitHub Desktop.
Remove all files ending in (1).jpg, e.g. dropbox duplicates on darwin zsh
This file contains hidden or 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
#! /bin/bash | |
ls -l | grep "(1).jpg" | awk -v q="'" '{printf "%s%s %s %s%s\n",q,$9,$10,$11,q}' | xargs rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment