Great script! I made some local edits for the use case of converting all the content on my NAS. The readme mentions the ability to use a directory as an input so I assume this regressed at some point. I also had some files with spaces in the name, and your "for in" was delimiting filenames from "find" with spaces, so I changed it to delimit with \0 and parse it out.
I hope you don't find my whitespace change too aggressive, but I normally view content with tabs rendered as two spaces, and there were quite a few inconsistencies between using tabs vs spaces in the script, so I normalized them. Feel free to ignore this change and fix-up the others to match whitespace.
Hi Petr,
Great script! I made some local edits for the use case of converting all the content on my NAS. The readme mentions the ability to use a directory as an input so I assume this regressed at some point. I also had some files with spaces in the name, and your "for in" was delimiting filenames from "find" with spaces, so I changed it to delimit with \0 and parse it out.
I hope you don't find my whitespace change too aggressive, but I normally view content with tabs rendered as two spaces, and there were quite a few inconsistencies between using tabs vs spaces in the script, so I normalized them. Feel free to ignore this change and fix-up the others to match whitespace.
-Elijah