Thank you.
Migrated from freeotp to andotp today thanks to your script.
Worked like a charm from the first time. (Maybe print usage and the other error message to stderr in case people directly do use a file redirection AND make a typo at the same time).
I owe you a coffee or a beer, if there's a way to send that to you þ
Thanks again for sharing, bests.