Advertisement
otakana

archive subfolders by name

Nov 19th, 2020
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. find -maxdepth 2 -type d -name ".git" -execdir bash -c 'tar --exclude ".git" -cvzf $(dirname $( readlink -f {} ) ).tgz .' \;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement