Skip to content

Neved4/grok.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shell Script POSIX.1%2D2017

grok.sh - The infamously hard to grok table!

Original by Mike Clark.

Now in only 957 645 bytes! The classic reborn! AT&T UNIX System V-friendly!

Evaluates the Parameter Substitution table in POSIX.1-2017: Parameter Expansion:

Generated using agg, asciinema, Menlo font, Github Dark theme.

Getting Started

Prerequisites

Installation

Paste in a macOS Terminal or Linux shell prompt:

/bin/sh -c "$(curl -fsSL https://github.com/Neved4/colort.sh/tree/master/install.sh"

Usage

grok.sh [classic | modern | fusion]

Portability

Supported shells

Shell Version Supported
bash 5.2.15 Yes
dash 0.5.12 Yes
ksh93 93u+m/1.0.7 Yes
mksh 59c Yes
oksh 7.3 Yes
osh 0.18.0 Yes
posh 0.14.1 Yes
yash 2.55 Yes
zsh 5.9 Yes
elvish 0.19.2 No
etsh 5.4.0 No
fish 3.6.1 No
tcsh 6.21.00 No
nsh 0.4.2 No
nu 0.85.05 No
ysh 0.18.0 No
xonsh 0.14.1 No

Standards

This script conforms to ISO 9945:2009, also known as POSIX.1-2017.1

License

grok.sh is licensed under the terms of the MIT License.

See the LICENSE file for details.

Footnotes

  1. IEEE Std 1003.1-2017: Standard for Information Technology — Portable Operating System Interface (POSIX®), ISO/IEC/IEEE 9945:2009/COR 2:2017. URL: https://pubs.opengroup.org/onlinepubs/9699919799/ ↩