commands.sh

let

all

Evaluate arithmetic expressions in shell.

More info →

Examples (4)

Evaluate a simple arithmetic expression

let "result = a + b"

Use post-increment and assignment in an expression

let "x++"

Use conditional operator in an expression

let "result = (x > 10) ? x : 0"

Display help

let --help
made by @shridhargupta | data from tldr-pages