I thought this would do the trick:
find src -type f -regextype egrep -regex '.*(?<!\.d)\.ts'
But it doesn't seem to be matching anything.
I think that should work, but I guess this "egrep" flavor doesn't support negative backreferences unless I didn't escape something properly.
For reference,
% find src -type f
src/code-frame.d.ts # <-- I want to filter this out
src/foo.ts
src/index.ts
Is there another quick way to filter out .d.ts
files from my search results?
% find --version
find (GNU findutils) 4.7.0-git