3 ms·
Depending on your usage, a "script" done in a language like Swift, Go, or Haskell will probably take a little longer to put together than a bash script. Bash me
by BooneJS 8y ago
Depending on your usage, a "script" done in a language like Swift, Go, or Haskell will probably take a little longer to put together than a bash script. Bash merely glues together generally-available command-line tools with pipes and minimal error handling, whereas the other languages typically require you to put forth some energy to use their library and validating outputs.
If all you care about is ticking a box in the shortest amount of time, I've found that small scripts are best done in bash whereas longer "scripts" would benefit from a safer language utilized in a JIT compilation paradigm (shebang for Swift or Haskell, `go run`, etc).