Skip to content

Instantly share code, notes, and snippets.

@tangjeff0
Created August 14, 2019 21:36
Show Gist options
  • Save tangjeff0/4e2899b20b8a4fb79483004654dd2b19 to your computer and use it in GitHub Desktop.
Save tangjeff0/4e2899b20b8a4fb79483004654dd2b19 to your computer and use it in GitHub Desktop.
recipes
# print names of all branches
cat ./data/all_branches.json \
| jq 'map(.name)' \
> ./data/all_branches.txt
# filter to only include branches that start with "RS"
cat ./data/all_branches.json \
| jq 'map(select(.name | test("^RS")) | .name)' \
> ./data/rs_branches.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment