Skip to content

Instantly share code, notes, and snippets.

@alpody
Last active November 17, 2015 08:23
Show Gist options
  • Save alpody/745fa780280d0dd9c36e to your computer and use it in GitHub Desktop.
Save alpody/745fa780280d0dd9c36e to your computer and use it in GitHub Desktop.
Remove file what name not exist in dir-site.txt
diff dir-site-id.txt site-id.txt | sed -n '/>/s/>\s\(.*\)/\1/p' | xargs -I {} rm res/{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment