What I need is to extract all .svn-folders from a project within their original directory structure and make a tar file out of it. So that in the archive I have only the emtpy folders with all .svn-folders and their contents in it.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do this by using tar a bit like cpio, by selecting directories using find. EG:
If you want, you can avoid problems with whitespace using -print0 instead of -print, and tar –null.