Edi Santoso
Odoo and Python Developer
drink a tea to enjoying the life

Linux command to delete file excluding some file using find

Q: How to delete all file with exlcuding some file in a regex in linux?

A: Use find command, here the command


$ find . \( -name "*.po"  \! -name id.po \) -delete