Scripting question how to filter list of files based on globs
Philip Prindeville
philipp_subx at redfish-solutions.com
Tue Apr 9 14:30:34 PDT 2024
Hi,
I'm trying to modify a script generates a list of filenames one per line, but should be filtered against a blacklist of file globs.
Something like:
% find dir <args> -print | grep -v -f blacklist
if this were a version of grep that understood shell-style globs instead of basic regular expressions.
Worst case I could try to mangle the globs patterns into regular-expressions, but I was hoping for something simpler.
Any ideas?
Thanks,
-Philip
More information about the openwrt-devel
mailing list