举例:
find ./* /( -path './otl' -o -path './helloworld' /) -prune -o -print0 | xargs -0 tar -cvf ../code.tar
//将当前目录(除了子目录 otl 及 helloworld )打包至 code.tar 中,注意使用 ./* 而不是 . 或 ./
举例:
find ./* /( -path './otl' -o -path './helloworld' /) -prune -o -print0 | xargs -0 tar -cvf ../code.tar
//将当前目录(除了子目录 otl 及 helloworld )打包至 code.tar 中,注意使用 ./* 而不是 . 或 ./