# Find and then delete all files under current directory (.) that: # 1. contains cmake (case-&insensitive) in it's path (wholename) # 2. name is not CMakeLists.txt find . -iwholename '*cmake*' -not -name CMakeLists.txt -delete NU TAKOE, budu rm -rf pol'zovat', eto izvestnaja FEATURE cmake i recommended solution TM