diff --git a/cheatsheets/find b/cheatsheets/find index 00c6c86..c6126b3 100644 --- a/cheatsheets/find +++ b/cheatsheets/find @@ -36,3 +36,6 @@ find . -type d -empty -exec rmdir {} \; # To search for directories named build at a max depth of 2 directories find . -maxdepth 2 -name build -type d + +# To search all files who are not in .git directory +find . ! -iwholename '*.git*' -type f