https://www.baeldung.com/linux/bash-substring
Anonymous
Prototype before polishing. Get it working before you optimize it.