Skip to content

Instantly share code, notes, and snippets.

@adampats
Last active March 9, 2016 22:16
Show Gist options
  • Save adampats/e8e7ac150873557fe319 to your computer and use it in GitHub Desktop.
Save adampats/e8e7ac150873557fe319 to your computer and use it in GitHub Desktop.
bash jq filter newline
foo () {
jqf='.ImageId,'\
'.InstanceId'
aws_ec2_list | jq -S "$jqf"
}
@adampats
Copy link
Author

adampats commented Mar 9, 2016

Output warning:
-bash: .InstanceId: command not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment