Re: Scripting question how to filter list of files based on globs

2024-04-10 Thread Paul D
> It's not beautiful, but it works: > > xargs -a blacklist.txt -I {} sh -c 'find package \( -name "$1" -prune \) -o > -type f -print' sh {} > > I take that back - no it doesn't :/ ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org

Re: Scripting question how to filter list of files based on globs

2024-04-10 Thread Paul D
On 2024-04-10 16:45, Philip Prindeville wrote: > > >> On Apr 9, 2024, at 6:03 PM, Paul D wrote: >> >> On 2024-04-09 23:30, Philip Prindeville via openwrt-devel wrote: >>> I'm trying to modify a script generates a list of filenames one per >>> line, but should be filtered against a blacklist of

Re: Scripting question how to filter list of files based on globs

2024-04-10 Thread Philip Prindeville via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- > On Apr 9, 2024, at 6:03 PM,

Re: Scripting question how to filter list of files based on globs

2024-04-09 Thread Paul D
On 2024-04-09 23:30, Philip Prindeville via openwrt-devel wrote: > 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 -print | grep -v -f blacklist I got this. When I run it

Scripting question how to filter list of files based on globs

2024-04-09 Thread Philip Prindeville via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- Hi, I'm trying to modify a

Scripting question how to filter list of files based on globs

2024-04-09 Thread Philip Prindeville via openwrt-devel
The sender domain has a DMARC Reject/Quarantine policy which disallows sending mailing list messages using the original "From" header. To mitigate this problem, the original message has been wrapped automatically by the mailing list software.--- Begin Message --- Hi, I'm trying to modify a