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

exact values in file size filter #669

Closed
Rogach opened this issue Oct 18, 2020 · 2 comments
Closed

exact values in file size filter #669

Rogach opened this issue Oct 18, 2020 · 2 comments

Comments

@Rogach
Copy link
Contributor

Rogach commented Oct 18, 2020

Currently fd --size 0b gives an error: [fd error]: '0b' is not a valid size constraint.

Documentation seems to require + or - prefixes (greater than or less than). Maybe we should handle cases without prefix as meaning "this exact size"? find does it this way - --size 0 will find files with size of zero bytes.

(if such change is acceptable, I would be willing to provide a pull request)

@sharkdp
Copy link
Owner

sharkdp commented Dec 1, 2020

That sounds great, yes! Thank you.

This also looks good if used with --size=<value> syntax:

fd --size=100b

@sharkdp
Copy link
Owner

sharkdp commented Dec 6, 2020

released in v8.2.0.

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

2 participants