Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Learn Renku
Teaching on Renku
Advanced teaching automation
Commits
57b375f0
Commit
57b375f0
authored
Mar 23, 2022
by
Cyril Matthey-Doret
Browse files
add oneliner to convert json to CSV
parent
40d6641d
Pipeline
#332380
passed with stage
in 2 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
docs/oneliners.md
View file @
57b375f0
...
...
@@ -51,3 +51,9 @@ $ jq '.[].members[].name' forks.json \
```
sh
jq
-s
'.[0] + .[1] | unique_by(.group)'
run1.json run2.json
>
both_runs.json
```
*
Make a CSV table from the flat JSON fields:
```
sh
jq
-r
'.[] | [.id,.group,.url,.autostart_url] | @csv'
forks.json
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment