Difference between revisions of "Jq -r"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
  
 
  [[aws ec2 describe-instances]] | [[jq -r]] '.Reservations[].Instances[]|.InstanceId+" "+.InstanceType+" "+(.Tags[] | select(.Key == "Name").Value)'
 
  [[aws ec2 describe-instances]] | [[jq -r]] '.Reservations[].Instances[]|.InstanceId+" "+.InstanceType+" "+(.Tags[] | select(.Key == "Name").Value)'
 +
 +
aws rds describe-db-instances | jq -r '.DBInstances[0].Endpoint.Address'
  
 
== See also ==
 
== See also ==

Revision as of 10:58, 23 June 2022

aws ec2 describe-instances | jq -r '.Reservations[].Instances[]|.InstanceId+" "+.InstanceType+" "+(.Tags[] | select(.Key == "Name").Value)'
aws rds describe-db-instances | jq -r '.DBInstances[0].Endpoint.Address'

See also

Advertising: