Advertisement
ebertek

Replace all directories that have the same name with another

Jun 16th, 2015
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. # Credit goes to m.sr @ http://serverfault.com/a/174554
  2. # Move the patched amtlib.framework to your home (⇧⌘H in Finder)
  3. # (Change the first 'amtlib.framework' to the name of the directories you want to delete)
  4. # (Change '~/amtlib.framework' to the directory you want to copy to all locations)
  5. sudo find /Applications/Adobe* -type d -iname 'amtlib.framework' -exec rm -rf \{\} \; -exec cp -R ~/amtlib.framework \{\} \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement