Unix shell script tactics - a style guide

This page summarizes the projects mentioned and recommended in the original post on /r/commandline

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • unix-shell-script-tactics

    Unix shell script tactics - best practices style guide

  • I fixed the link to "parse options via while and case not getopts or getopt". The correct link is https://github.com/SixArm/unix-shell-script-tactics/blob/main/doc/parse-options-via-while-and-case-not-getopts-or-getopt.md

  • ShellCheck

    ShellCheck, a static analysis tool for shell scripts

  • I also recommend to use ShellSheck, which is a linter for Bash scripts. It can be installed locally too.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • pure-sh-bible

    📖 A collection of pure POSIX sh alternatives to external processes.

  • pure-bash-bible

    📖 A collection of pure bash alternatives to external processes.

  • getoptsy

    getoptsy: getopts alternative to parse command line arguments to long options, in POSIX, using custom code.

  • petopts

    Portable and simple option parsing, powered by getopts(1p).

  • Here's what's I'm using.

  • bats-core

    Bash Automated Testing System

  • It's probably worth noting, bats-core is a solid testing framework, which allows a lot more serious approach to writing shell. https://github.com/bats-core/bats-core

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts