You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is already in the TODO list of this script; using the for loop to process the output of the find command is essentially flawed, but that is a known pitfall of bash.
If this script encounters a filename with a space, it will break because it will try to process all parts of the file name separated by a space as a different file.
This is an example on the right way to do it:
while read -rd $'\0' file; do
something with "$file"
done < <(find . -type f -name '*.*' -print0)
This issue is already in the TODO list of this script; using the
for
loop to process the output of thefind
command is essentially flawed, but that is a known pitfall of bash.If this script encounters a filename with a space, it will break because it will try to process all parts of the file name separated by a space as a different file.
This is an example on the right way to do it:
Additional info:
The text was updated successfully, but these errors were encountered: