getopts

GNU Bourne Again SHell

Install

All systems
curl cmd.cat/getopts.sh
Debian Debian
apt-get install bash
Ubuntu
apt-get install bash
Alpine
apk add bash
Arch Arch Linux
pacman -S bash
image/svg+xml Kali Linux
apt-get install bash
CentOS
yum install bash
Fedora
dnf install bash
Windows (WSL2)
sudo apt-get update sudo apt-get install bash
OS X
brew install bash
Raspbian
apt-get install bash
Docker
docker run cmd.cat/getopts getopts powered by Commando

bash

GNU Bourne Again SHell

Bash is an sh-compatible command language interpreter that executes commands read from the standard input or from a file. Bash also incorporates useful features from the Korn and C shells (ksh and csh). Bash is ultimately intended to be a conformant implementation of the IEEE POSIX Shell and Tools specification (IEEE Working Group 1003.2). The Programmable Completion Code, by Ian Macdonald, is now found in the bash-completion package.