you can use regex here, i.e find / -regex '.*\/[^0-9]+$' : this will look for end file name only ex : abc/1ws/filename : will be matched ; reason => filename has no number find . -regex '^[^0-9]+$' : this will look for entire path ex : abc/1ws/filename : will not match ; reason => 1ws has number I hope , that will solve the issue :)
Hello , I want to find a file with below given scenario. File name transcation_report-2020--MM-DD 1. only files whose parent directory is weekly and daily. 2. Files to be deleted monlty wise for whole year. 3. Directory structure is non structure same folders can be found within sub folders i.e you need to traverse up to n depth. 4. File size vary from 16kb to 5mb. 5. Total data to be deleted is 21TB 6. Can not use find command, while using find command the system iops get spiked.