Bash String Functions Substring Mysql Command Not Found