Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search multiple extensions #199

Closed
erf opened this issue Dec 13, 2017 · 3 comments
Closed

Search multiple extensions #199

erf opened this issue Dec 13, 2017 · 3 comments

Comments

@erf
Copy link

erf commented Dec 13, 2017

Would it be an idea to add support for searching multiple extensions?

E.g. if i want to find both .h and .c files in a folder: fd -e h -e c

Or should i use regex patterns?

@sharkdp
Copy link
Owner

sharkdp commented Dec 14, 2017

Interesting idea. This could actually have a similar implementation as #177.

@sergeevabc
Copy link

So how do I find audio files (*.mp3|m4a|ogg|opus|flac) with the word love in their name?

@tavianator
Copy link
Collaborator

So how do I find audio files (*.mp3|m4a|ogg|opus|flac) with the word love in their name?

$ fd 'love.*\.(mp3|m4a|ogg|opus|flac)$'
media/audio/music/Al_Green/Love_And_Happiness.mp3
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants