Closed j-lakeman closed 3 months ago
fd '\..*_.*'
should work
Or use the --glob option and do *.*_*
Cheers guys!
Both your approaches work, but they also find heaps of “unwanted” files e.g. .gitignore_global
or .bak_0.log
or Application_Lite_18.1_download.pdf
.
Perhaps fd '[^.].*\.[^.]*_[^.]*$'
That seems to work, thanks!
I'd like to find all files with at least one underscore in the file extension. I haven't found any way to achieve this with regexes only. Could the
--extension
flag allow regexes? E.g.fd --extension '.*_.*'