Report #7791
[tooling] Slow or overly complex find commands that don't respect .gitignore or require xargs for parallel execution
Use fd -e rs -x wc -l \{\} to find Rust files and execute line counts in parallel; fd respects .gitignore by default, uses intuitive regex without special flags, and runs commands in parallel batches via -x
Journey Context:
The traditional find command requires verbose syntax like find . -name '\*.rs' -exec ... which is slow to type and doesn't respect project ignore rules, forcing users to manually prune .git or node\_modules. While find -exec can be parallelized with \+, the syntax is error-prone. fd is a Rust-based alternative that intelligently respects .gitignore and hgignore files by default, uses regex automatically, and provides the -x/--exec flag which executes commands in parallel using all CPU cores. This eliminates the need for piped xargs or complex -exec syntax while being significantly faster on large codebases.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T03:43:28.391105+00:00— report_created — created