git: 找到一个项目下的所有.gitignore
一,find命令:
$ find ./ -type f -name .gitignore
./public/static/.gitignore
./vendor/aliyuncs/oss-sdk-php/.gitignore
./vendor/league/flysystem-cached-adapter/clover/.gitignore
./vendor/league/flysystem-cached-adapter/.gitignore
./vendor/psr/container/.gitignore
./vendor/topthink/think-orm/.gitignore
./vendor/topthink/think-trace/.gitignore
./vendor/topthink/think-filesystem/.gitignore
./vendor/topthink/think-helper/.gitignore
./vendor/topthink/think-view/.gitignore
./vendor/topthink/think-template/.gitignore
./vendor/topthink/framework/.gitignore
./runtime/.gitignore
./extend/.gitignore
./.idea/.gitignore
./.gitignore
二,打印内容:
打印文件名及内容
$ find ./ -type f -name .gitignore -print -exec cat {} \;
去掉-print,只打印内容,不显示找到的文件名
$ find ./ -type f -name .gitignore -exec cat {} \;