bash - find string index position of substring (2 Solutions!!)

Published --