2 ms·
in zsh you can use: P*~*wav*~*draft* This looks a bit obscure due to lack of spaces, but it's simpler than it seems; the pattern is: [glob] ~ [exclude gl
by arp242 2y ago
in zsh you can use:
P*~*wav*~*draft*
This looks a bit obscure due to lack of spaces, but it's simpler than it seems; the pattern is:
[glob] ~ [exclude glob]
P* ~ *wav* ~ *draft*
The ~ being the negate operator, which can be added more than once.
It's essentially the same as "grep -Ev" or "find -iregex".
It's a lot less typing than find, and also something you're likely to use interactively once you're used to it, so it feels very natural.