Node: B
Sign in

The Craftsman's Blog

Andi Altendorfer, e-Matrix Innovations
A playground and sandbox for Altex

shell       2018 2019 2020 2021 2022 altex andi apple attic ax bash blog book bucketier conf craft css datasource dev elixir env erlang exconfig hardware hex i3 interview javascript learning linux liveview mac misc nerves obsolete organisation people phoenix podcasts project quote shell simplicity software talk timewrap tweet util video vim
Andi, 2018-10-17
I’m using Elixir as a scripting language for the shell And it’s that easy … Write a file, hello.exs for example.#!/usr/bin/env elixirdefmoduleGreeterdodefhello(name),do:IO.puts"Hello, #{name}!"end# MainGreeter.hello(hd(System.argv()) Don’t forget to chmod +x hello.exs and then use the script from the terminal....
shell       2018 2019 2020 2021 2022 altex andi apple attic ax bash blog book bucketier conf craft css datasource dev elixir env erlang exconfig hardware hex i3 interview javascript learning linux liveview mac misc nerves obsolete organisation people phoenix podcasts project quote shell simplicity software talk timewrap tweet util video vim