Bash Environment Variable Functions
A set of useful (Linux) Bash environment variable functions, taken / adapted, and added some information (not a plain copy) from blog post: https://hackaday.com/2022/01/26/linux-fu-bash-strings/ The examples below start with a $ if it is the command line, and without if it is the output (or input) of the command. Shell script command line arguments Numeric Substrings Remove leading or trailing parts Search / Replace Default values Changing case Bash built-in if tests Related external programs