Linux Bash Extract Substring Regexp