Unix & Linux: How to set variable equal to a certain substring pattern in bash? (4 Solutions!!)

Published --