Closed klauer closed 1 year ago
Apparently find with a command at the end only works on the last criterion unless you group the expression in \(
\)
. This works for me:
#!/bin/bash
while IFS= read -r -d '' source_filename; do
echo "Checking ${source_filename}"
done < <(find "." -type f \( -iname '*.TcDUT' -or -iname '*.TcGVL' -or -iname '*.TcPOU' \) -print0)
I won't take credit for this, stack exchange can
Well, I'll be... !
Regardless of where you got it, thanks for digging and figuring out the actual fix. Let me update this PR.
(If someone can clue me in what I'm doing wrong there - I'd certainly appreciate it...) In the meantime, the workaround in this PR seems to be fine as in the above file count listing.