Skip to content

Latest commit

 

History

History
33 lines (30 loc) · 539 Bytes

jq-cheatsheet.md

File metadata and controls

33 lines (30 loc) · 539 Bytes
aliases category classification date date_modified draft id image links local_archive_links pinned print series tags title type
jq-cheatsheet
jq
public
2020-05-08 04:24:48 -0700
2024-05-22 02:45:33 -0700
false
20200508112448
false
false
jq
json
cheatsheet
jq Cheatsheet
tech-note
# Take value and add to a new key name:
.[ ] | .[ ] | { Name: .StackName, Status: .StackStatus, Created: .CreationTime }

# Put values into new object:
jq '.[]|{name,id}'

# Sort by date key:
jq '. | sort_by(.date)'