There are several directories in my source tree which are using GIT source control and I need to try to tree the entire tree. In which GIT metadata or custom log files.
I thought I would have to use the search / combo / egrep / xargs / tar, but somehow the tar file contains the .git directory and the * .log file.
I have it:
find-type f. | Egrep -v '\ .git | \ .log '| Can anyone explain my misconception? I am also open for other techniques.
You will get a dirty surprise when more than one xargs command increases the number of files: then you First make a tar file of the first files and then overwrite a similar tar file with the rest of the files.
The GNU tar is the --exclude option that will solve this problem:
tar cvf ~ / app.tar --exclude .git --exclude "*. Log "
Comments
Post a Comment