Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
samtheprogram
· 4mo ago · 0 comments
Literally just use xargs with -I {} and quotation marks?
Comments
[–]
laughing_man
4mo ago
That won't save you from weird file names, but null termination will.
[–]
samtheprogram
OP
4mo ago
Passing "{}" handles most sane cases including spaces. If I'm doing bash that needs to be robust (rare and/or dotfiles) or know the folder/dataset has weird filenames, sure.