Postgresql Find Substring In Bash