Exclude file pattern from unzip command
I have a small problem caused by people creating zip files with .svn directories in them.
I have a small script that downloads a few files and unzips them into one of my svn dirs.
This is done once every day so I made a small bash script that handles this and added it to crontab.
The problem is that one of the zip files that the script downloads contains a .svn dir, this is a problem when it is unzipped into my svn dir.
I have tried using the unzip -x to exclude the .svn dir but I can't get the exclude to work at all.
Maybe someone can tell me how to unzip a file and exclude all dirs named .svn...
Thanks in advance...
What's the command you are using?
Did you try -x *.svn/*?
Thanks a lot...
Sry to get back on this but I found what caused the error.
unzip file.zip -x *.svn/*
workes perfect on my ubuntu machine, and thats where I tested the last part.
But it does not work on my debian server :/
|All times are GMT -5. The time now is 10:49 PM.|