How to convert a find command to instead use grep to filter and then `exec` commands on output?
问题 I have a scenario where I need to execute a series of commands on each file that's found. This normally would work great, except I have over 100 files and folders to exclude from find 's results for execution. This becomes unwieldy and non-executable from the shell directly. It seems like it would be optimal to use an "exclusion file" similar to how tar or grep allows for such files. Since find does not accept a file for exclusion, but grep does, I want to know: how can the following be