Unix & Linux: extract substring from string (2 Solutions!!)

Published --