Bash Substring Matching within String
Source: http://www.thegeekstuff.com/2010/07/bash-string-manipulation/ Other options: replace, shortest, longest, etc. See full POST FOR DETAILS. 3. Shortest Substring Match Following syntax deletes the shortest match of $substring from front of $string ${string#substring} Following syntax … Read More