Skip to content

Instantly share code, notes, and snippets.

@jesseditson
Created January 19, 2019 03:15
Show Gist options
  • Save jesseditson/f7f798cf43863dcef14b61b0a8068ca4 to your computer and use it in GitHub Desktop.
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
#! /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