To remove quotes from a string, use the following command:
echo "Test" | tr -d '"'
For example, I’ve used it on the following aws cli command:
aws --profile someProfile --region us-east-1 ecr describe-repositories | grep repositoryName | cut -d":" -f2 | tr -d '"' | tr -d ',' > repositories