Difference between revisions of "Jq -r"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
 +
[[aws ec2 describe-instances]] | [[jq -r]] '.Reservations[].Instances[]|.InstanceId+" "+.InstanceType+" "+(.Tags[] | select(.Key == "Name").Value)'
  
 
== See also ==
 
== See also ==

Revision as of 19:09, 22 June 2022

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

See also

Advertising: