Elektrine lite

← Feed

@DrHyde@fosstodon.org

Post #1837451

2026-04-28 18:19 UTC

So my earlier #VagueToot about #bash #globbing ... I want to be able to specify something like "all the directories which don't contain a file called wibble.yml". #extglob can find files that don't match a `!(pattern)`, but I want to match the absence of such files in a directory. eg, if foo/bar, baz/bar and barf/ exist I want to be able to `ls -ld [magic goes here]` to get info about directory barf/ only. Yes, I know other ways of doing this. I want to do it using globbing. Because I do.

Replies (0)

No replies.