Sample Header Ad - 728x90

Bash extglob with ignored pattern

4 votes
1 answer
134 views
Suppose I have these files:
foo/bar/baz/test.js
foo/bar/baz/test.min.js
If I run:
shopt -s globstar
shopt -s extglob
echo foo/bar/**/*!(.min).js
...that will nonetheless match the test.min.js file. How do I ignore it?
Asked by lonix (1965 rep)
Dec 13, 2024, 11:01 AM
Last activity: Jan 6, 2025, 01:58 PM