I am running following command on git bash (windows)
paste --delimiter=\\n --serial src/libs/**/*[^.spec].js > test.js
with shopt:
globstar on
extglob on
This successfully concats all js files recursively from src/libs on, except all *.spec.js files when executed from terminal.
However, when I run this command through grunt-shell (https://github.com/sindresorhus/grunt-shell) it works also but : [^.spec] is ignored. Means all my *.spec.js files get into test.js too.
With extglob (and globstar) the following syntax is correct the other
[^
..]
is a negative character set.Otherwise it can be done with find
Is there any difference with