Answer the question
In order to leave comments, you need to log in
How to search by find skipping some directories?
Subject.
Let's say I'm looking for: find ./ -name '*.php' | xargs grep -E '[0-9a-zA-Z/]{80}'
How can I skip the cache and crm/m_cache directories that are in the current one?
Answer the question
In order to leave comments, you need to log in
find . -name "*.php" ! -path "./cache/*" ! -path "./crm/m_cache/*"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question