@jordan31@fosstodon.org Bourne-family shells like bash are definitely great for quickly banging out simple stuff but, compared to a modern scripting language like Python, they can get hairy very quickly.
(I'm not a fan of using `trap` to ensure temporary files get cleaned up no matter how the script exits, for example.)
You'll probably want http://mywiki.wooledge.org/BashFAQ at some point.