minus-squareelmicha@feddit.orgtoLinux@lemmy.ml•Bash scripting questionlinkfedilinkarrow-up4·3 days agoYou forgot the -print0 at the end of the find command. In the read -r -d '' you want to read NUL-separated strings, so you must tell the find command to also use NUL characters between the filenames. linkfedilink
You forgot the
-print0at the end of the find command. In theread -r -d ''you want to read NUL-separated strings, so you must tell the find command to also use NUL characters between the filenames.