Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The GNU way for handling files that have inconvenient characters in their names is:

    find ... -print0 | xargs -0 ...
It makes all the problems go away.


Also you can use readarray to store the found filenames in a bash array (to use with a for loop).




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: