We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A common scenario is to be able to execute, not only one but a sequence of commands, for every path of a search result.
For instance, the following command unpacks every zip file:
fd -e zip -x unzip
But how to remove the zip file after unpacking it successfully ? The syntax I found to work, after some trial & errors, is:
fd -e zip -exec sh -c 'unzip "{}" && rm "{}"'
Is there a more intuitive way ? In any case, I'd suggest to include a similar example to README file.
The text was updated successfully, but these errors were encountered:
Thank you for the feedback.
Unfortunately, that's not (yet) possible. See also: #406 (comment)
Sorry, something went wrong.
I'm closing this in favor of #406
No branches or pull requests
A common scenario is to be able to execute, not only one but a sequence of commands, for every path of a search result.
For instance, the following command unpacks every zip file:
But how to remove the zip file after unpacking it successfully ?
The syntax I found to work, after some trial & errors, is:
fd -e zip -exec sh -c 'unzip "{}" && rm "{}"'
Is there a more intuitive way ?
In any case, I'd suggest to include a similar example to README file.
The text was updated successfully, but these errors were encountered: