Demonstrate some examples of string manipulation and variables
# Default values ${1-defaults}
./bash_strings.sh
# Also does substring matching "hello*"
./bash_strings.sh hello world
# Default values ${1-defaults}
./zsh_strings.sh
# Also does substring matching "hello*"
./zsh_strings.sh hello world
- string-manipulation
- parameter-substitution
cheatsheet bash+string
- Trimming whitespae in strings here
- zsh 14.1.4 Modifiers here