tmonteit
asked on
Unix / Linux Command question
I'm building a tar file on a directory that contains subversion (".svn") subdirectories.
The problem is I want to tar us everything UNLESS!! it lives in a .svn sub directory.
The command I'm currently using is:
tar -cvf mytar.tar myRootDir
How do I filter out any subversion directories?
The problem is I want to tar us everything UNLESS!! it lives in a .svn sub directory.
The command I'm currently using is:
tar -cvf mytar.tar myRootDir
How do I filter out any subversion directories?
find myrootdir -name '*.svn*; -prune -or \! -type d -print | xags tar -rvf -X mytar.tar
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
sylong had the right answer but duncan had the better explanation : points split.