fd with xargs: filenames with spaces

51 · 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.