Bash
https://www.gnu.org/software/bash/manual/bash.html
https://mywiki.wooledge.org/BashFAQ/
https://tldp.org/LDP/abs/html/string-manipulation.html
Echo from the 7th character in line, the next 3 characters
echo ${line:7:3}
Count the characters in the line
len=${#line}
Strip everything after the underscore
keyname=${key%%_*}
Strip everything before the slash
keyname=${keyname##*/}