Welcome to Glass Jar Presentations! Welcome! Whether you are spacing jars on a shelf, choosing shapes, or tying twine around a lid, this is a friendly spot to talk through glass jar presentation ideas. Browse the sections and add your own questions or observations whenever you are ready.

How to replicate find -execdir behavior using fd

  • Thread starter Thread starter Dave Johnson
  • Start date Start date
D

Dave Johnson

Guest
While find is a powerful Linux command-line tool for file searching, its syntax can be verbose. fd offers a more user-friendly and faster alternative. In my previous article on Freeing Up Gigabytes: Reclaiming Disk Space from Rust Cargo Builds, I shared an option for cleaning Rust build artifacts using find -execdir to invoke cargo clean from the root directory of each Rust project. This post explores how to achieve a similar workflow using fd, which lacks a direct equivalent to -execdir, and the workarounds involved.
 
Last edited:
Top