Skip to content. | Skip to navigation

Navigation

You are here: Home / Support / Guides / Scripting / Bash

Personal tools

Bash

Better Bash Scripting

Better Scripting

To improve shell scripts there are things we can do in Bash that we don't have to call on an external command to do (expr, sed, etc.).

  • Use $(...) for Process Substitution rather than:

    `...`
    

    as it scans more easily and you can nest them trivially.

  • Use $(( 1+1 )) for Arithmetic rather than calling out to expr with its very inflexible syntax.

Handy Functions

Help Required

Shell Tricks

Document Actions