Aco-gt
How to use for loop with filenames containing spaces?
I'm encountering an error when trying to run a Taskfile and need some help.
My task needs to process filenames that may contain spaces.
Here is the relevant part of my Taskfile:
However, it doesn't seem to work correctly when filenames contain spaces.
I tried using tr to convert null characters to tabs,
find {{.PDF_PATH}} -type f -name '*.pdf' -print0 | tr '\0' '\t'
but it still didn't work.
Does anyone know how to correctly use the for loop with filenames containing spaces in Taskfile?
Thanks!
3 replies