0

I have an example command aws describe-something command which returns the following output.

{
    "Image": [
        {
            "Name": "tyy1", 
            "VpcConfig": {
                "SubnetIds": [
                    "subnet-800jhoic9"
                ], 
                "SecurityGroupIds": [
                    "sg-jj-popttf5"
                ]
            }, 
            "EnableDefaultInternetAccess": false, 
            "ImageBuilderErrors": [], 
            "Platform": "WINDOWS", 
            "State": "SNAPSHOTTING", 
            "InstanceType": "stream.standard.medium"
        }
    ]
}

I tried using this command aws describe-something | grep -i State | sed -n -e 's/^.*\"State\": //p' to return SNAPSHOTTING however I am getting "SNAPSHOTTING". How do I remove the comma and double quote?

tset
  • 433
  • 3
  • 12
  • 23

0 Answers0