Commit e7b7cbd3 authored by Cyril Matthey-Doret's avatar Cyril Matthey-Doret
Browse files

add one-liner to generate student table from JSON of forks

parent 7864d8d1
Pipeline #367248 passed with stage
in 3 minutes and 36 seconds
......@@ -52,8 +52,14 @@ $ jq '.[].members[].name' forks.json \
jq -s '.[0] + .[1] | unique_by(.group)' run1.json run2.json > both_runs.json
```
* Make a CSV table from the flat JSON fields:
* Make a CSV table with one row per group from the flat JSON fields:
```sh
jq -r '.[] | [.id,.group,.url,.autostart_url] | @csv' forks.json
```
* Make a CSV table with one line per student:
```sh
jq -r 'map({user: .members[].name, group: .group}) | map([.user, .group])[] | @csv' forks.json
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment