From 698d9babb5e3e182d61c481040a7f32621475ad9 Mon Sep 17 00:00:00 2001 From: Bert Van Vreckem Date: Mon, 28 Oct 2024 09:30:41 +0100 Subject: [PATCH] Fix urls van voorbeelden gebruik jq --- 05-advanced-text-processing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/05-advanced-text-processing.md b/05-advanced-text-processing.md index b4f8e3d..63d832d 100644 --- a/05-advanced-text-processing.md +++ b/05-advanced-text-processing.md @@ -212,7 +212,7 @@ 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*) @@ -220,7 +220,7 @@ 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)