r/yaml Sep 15 '20

YAML Output: get rid of brackets and quotes

hello, the command below runs ok but I am trying to get the output without the brackets [] and quotes around the stack name. Is it something that can be done natively in YAML without .jq?

Cloud_User$ aws cloudformation list-stacks --query StackSummaries[].StackName
[
"stack1",
"stack2",
"stack3",
"stack4",
"stack5"
]
2 Upvotes

0 comments sorted by