There is a directory containing the following files:
.
├── bla-bla-bla1.tar.7z
├── bla-bla-bla2.tar.7z
├── bla-bla-bla3.tar.7z
└── _bla-bla-bla_foo.tar.7z
I need to find and delete all of the files that in the format of *.7z except _*.7z
I've tried:
find /backups/ -name "*.7z" -type f -mtime +180 -delete
How I can do it?