Off-topic: filtering stream of pathnames for glob'd exclusions

Philip Prindeville philipp_subx at redfish-solutions.com
Mon Apr 22 16:16:03 UTC 2024


Hi,

Somewhat off-topic post but this is on a system that has Busybox installed so I can't use features that other shells might provide.

I have a stream generated by "find" of pathnames, and I want to delete (filter out) certain paths based on the contents of a file that holds exclusions.

Anyone know an easy way to do this?  Something like "... | grep -v -f exclusions.txt" if grep worked with globs instead of patterns...

Any suggestions?

Thanks,

-Philip



More information about the busybox mailing list