Skip to content

Commit

Permalink
Fix urls van voorbeelden gebruik jq
Browse files Browse the repository at this point in the history
  • Loading branch information
bertvv committed Oct 28, 2024
1 parent a887ace commit 698d9ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 05-advanced-text-processing.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,15 @@ END {
## jq als "pretty printer"

```console
curl -s 'https://api.github.com/repos/stedolan/jq/commits?per_page=5' | jq
curl -s 'https://api.github.com/repositories/5101141/commits?per_page=5' | jq
```

of: `jq '.'` (met `.` de *identity operator*)

## Toon enkel eerste element

```console
curl -s 'https://api.github.com/repos/stedolan/jq/commits?per_page=5' | jq '.[0]'
curl -s 'https://api.github.com/repositories/5101141/commits?per_page=5' | jq '.[0]'
```

(in de volgende voorbeelden: enkel het `jq`-commando)
Expand Down

0 comments on commit 698d9ba

Please sign in to comment.