find . -iname '*.js' ! -iname '*.min.js'
Output
./js/another_folder/hello.js
./js/folder/inner folder/nice.js
./js/folder/test.js
./config.js
And to remove these files you just pipe them to rm
find . -iname '*.js' ! -iname '*.min.js' -exec rm -f {} +
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…