fd with xargs: filenames with spaces

· Thiago Perrotta · Aug. 8, 2025, 1:06 p.m.
Summary
This blog post discusses a method for finding occurrences of 'base/mongo' in kustomization.yaml files within a codebase using the fd command combined with xargs to handle filenames with spaces effectively. It also highlights the challenges posed by file names with spaces and provides a solution by using null-separated output.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →