Hacker News new | ask | show | jobs
by aa-jv 7 days ago
>* xargs gets you the spaces in filenames landmine

Ignorance of xargs gets you the landmine.

Understanding of xargs, helps you complete the mission without blowing off limbs.

    $ find . -name "Some Files With Spaces*.txt" -print0 | xargs -0 -I {} echo "Processing: {}"  # landmine avoided
1 comments

cf. sibling, find is not the only thing to pipe from.