Skip to content

Instantly share code, notes, and snippets.

@xhanin
Created October 13, 2013 18:57
Show Gist options
  • Save xhanin/6965995 to your computer and use it in GitHub Desktop.
Save xhanin/6965995 to your computer and use it in GitHub Desktop.
diff 2 directories in zsh
# suppose you have a set of files in target/base-deps
# and want to remove files in target/dependency with the same names
for f (target/base-deps/*.jar) {rm $f:s/base-deps/dependency/}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment