Category

Bash

The pure Bash function library (PHP-style helpers written in Bash) and practical shell scripting techniques.

28 articles, page 3 of 3

Bash

is_num() in Bash: Check if a Value Is a Number

Check that input is a whole number, a signed integer or a decimal before doing arithmetic, and avoid the octal, empty-string and injection problems in (( )).

6 min read, updated 17 Oct 2026