In bin
directory you'll find various example of simple Elixir scripts
that may help you in replacing a more complex Bash script with Elixir.
Navigate by name and --help
what each one of them is doing.
You can find more about the context for this repo on my blog.
You can also find more advanced examples in mix_install_examples.