Fd: Does fd support full regular expression syntax?

Created on 25 Apr 2019  路  3Comments  路  Source: sharkdp/fd

I see fd miss a file during my tests. Is this expected?

MacOS:ioutils hdang$ fd "zstd/.*doc/README[.]md$" ../3p/src/

MacOS:ioutils hdang$ fast-find -e "zstd/.*doc/README[.]md$" ../3p/src/
../3p/src/zstd/doc/README.md

question

All 3 comments

fd supports this regex syntax.

It looks like you want to match on a full path (instead of just the basename). In this case, you need to use the --full-path/-p option.

Thanks.

--full-path option works for me.

Was this page helpful?
0 / 5 - 0 ratings