Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-10-2009, 06:28 AM
|
#1
|
|
LQ Newbie
Registered: Jun 2008
Location: Västerås, Sweden
Distribution: Ubuntu, Debian
Posts: 21
Rep:
|
Exclude file pattern from unzip command
Hi all...
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...
|
|
|
|
01-10-2009, 06:44 AM
|
#2
|
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,965
|
What's the command you are using?
Did you try -x *.svn/*?
|
|
|
|
01-10-2009, 06:48 AM
|
#3
|
|
LQ Newbie
Registered: Jun 2008
Location: Västerås, Sweden
Distribution: Ubuntu, Debian
Posts: 21
Original Poster
Rep:
|
Quote:
Originally Posted by i92guboj
What's the command you are using?
Did you try -x *.svn/*?
|
I thought I did but apparently not, because that worked.
Thanks a lot...
|
|
|
|
01-10-2009, 07:10 AM
|
#4
|
|
LQ Newbie
Registered: Jun 2008
Location: Västerås, Sweden
Distribution: Ubuntu, Debian
Posts: 21
Original Poster
Rep:
|
Sry to get back on this but I found what caused the error.
The command:
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 :/
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:06 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|