Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
chasil
on Nov 24, 2021
|
parent
|
context
|
favorite
| on:
Bash patterns I use weekly
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.
eMSF
on Nov 24, 2021
[–]
Also you can use readarray to store the found filenames in a bash array (to use with a for loop).
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: