From this answer https://stackoverflow.com/a/59688271/7577919 I was able to decrpypt multiple PDFs in place using this bash script:
temp=`ls`;
for each in $temp;
do qpdf --decrypt --replace-input $each;
done
However, I had initially attempted to do this in Zsh (as it's encouraged in MacOS 10.15 Catalina), but was unable. It gave an error of output: File name too long
What is the difference between the for
loops in Bash and Zsh and how would I go about writing a proper Zsh script?