From 9cfbefe8f09ea3c0353b41fd400a742ef21e233c Mon Sep 17 00:00:00 2001 From: Craig D'Silva Date: Thu, 19 Mar 2026 22:32:41 +0000 Subject: [PATCH 1/5] jq --- jq/script-01.sh | 2 ++ jq/script-02.sh | 2 ++ jq/script-03.sh | 2 ++ jq/script-04.sh | 2 ++ jq/script-05.sh | 2 ++ jq/script-06.sh | 2 ++ jq/script-07.sh | 2 ++ jq/script-08.sh | 2 ++ jq/script-09.sh | 2 ++ jq/script-10.sh | 2 ++ jq/script-11.sh | 2 ++ 11 files changed, 22 insertions(+) diff --git a/jq/script-01.sh b/jq/script-01.sh index 95827f688..6a53b2c45 100755 --- a/jq/script-01.sh +++ b/jq/script-01.sh @@ -5,3 +5,5 @@ set -euo pipefail # The input for this script is the person.json file. # TODO: Write a command to output the name of the person. # Your output should be exactly the string "Selma", but should not contain any quote characters. + +cat person.json | jq -r ".name" \ No newline at end of file diff --git a/jq/script-02.sh b/jq/script-02.sh index 21544d67b..eb2e6a721 100755 --- a/jq/script-02.sh +++ b/jq/script-02.sh @@ -5,3 +5,5 @@ set -euo pipefail # The input for this script is the person.json file. # TODO: Write a command to output the address of the person, all on one line, with a comma between each line. # Your output should be exactly the string "35 Fashion Street, London, E1 6PX", but should not contain any quote characters. + +cat person.json | jq -r '.address | join(", ")' \ No newline at end of file diff --git a/jq/script-03.sh b/jq/script-03.sh index 3566f03ba..dc1fcb693 100755 --- a/jq/script-03.sh +++ b/jq/script-03.sh @@ -5,3 +5,5 @@ set -euo pipefail # The input for this script is the person.json file. # TODO: Write a command to output the name of the person, then a comma, then their profession. # Your output should be exactly the string "Selma, Software Engineer", but should not contain any quote characters. + +cat person.json | jq -j '[.name, .profession] | join (", ")' \ No newline at end of file diff --git a/jq/script-04.sh b/jq/script-04.sh index 015997e18..b47e833c5 100755 --- a/jq/script-04.sh +++ b/jq/script-04.sh @@ -6,3 +6,5 @@ set -euo pipefail # TODO: Write a command to output just the names of each player, one per line. # Your output should contain 6 lines, each with just one word on it. # Your output should not contain any quote characters. + +cat scores.json | jq -r '.[].name' \ No newline at end of file diff --git a/jq/script-05.sh b/jq/script-05.sh index 993fc9ee3..688b91d40 100755 --- a/jq/script-05.sh +++ b/jq/script-05.sh @@ -5,3 +5,5 @@ set -euo pipefail # The input for this script is the scores.json file. # TODO: Write a command to output the names of each player, as well as their city. # Your output should contain 6 lines, each with two words on it. + +cat scores.json | jq -r '.[] | [.name, .city] | join(" ")' \ No newline at end of file diff --git a/jq/script-06.sh b/jq/script-06.sh index 8b6e74c52..5dea0e2a6 100755 --- a/jq/script-06.sh +++ b/jq/script-06.sh @@ -6,3 +6,5 @@ set -euo pipefail # TODO: Write a command to output just the names of each player along with the score from their first attempt. # Your output should contain 6 lines, each with one word and one number on it. # The first line should be "Ahmed 1" with no quotes. + +cat scores.json | jq -r '.[] | [.name, .scores[0]] | join(" ")' \ No newline at end of file diff --git a/jq/script-07.sh b/jq/script-07.sh index d43f93d1b..1e1cf9d74 100755 --- a/jq/script-07.sh +++ b/jq/script-07.sh @@ -6,3 +6,5 @@ set -euo pipefail # TODO: Write a command to output just the names of each player along with the score from their last attempt. # Your output should contain 6 lines, each with one word and one number on it. # The first line should be "Ahmed 4" with no quotes. + +cat scores.json | jq -r '.[] | [.name, .scores[-1]] | join(" ")' \ No newline at end of file diff --git a/jq/script-08.sh b/jq/script-08.sh index 6671fd1ba..96508b13f 100755 --- a/jq/script-08.sh +++ b/jq/script-08.sh @@ -6,3 +6,5 @@ set -euo pipefail # TODO: Write a command to output just the names of each player along with the number of times they've played the game. # Your output should contain 6 lines, each with one word and one number on it. # The first line should be "Ahmed 3" with no quotes. + +cat scores.json | jq -r '.[] | "\(.name) \(.scores | length)"' \ No newline at end of file diff --git a/jq/script-09.sh b/jq/script-09.sh index c2536a536..5ce02f8b1 100755 --- a/jq/script-09.sh +++ b/jq/script-09.sh @@ -6,3 +6,5 @@ set -euo pipefail # TODO: Write a command to output just the names of each player along with the total scores from all of their games added together. # Your output should contain 6 lines, each with one word and one number on it. # The first line should be "Ahmed 15" with no quotes. + +cat scores.json | jq -r '.[] | "\(.name) \(.scores | add)"' \ No newline at end of file diff --git a/jq/script-10.sh b/jq/script-10.sh index 8e9d75f07..4a63494dc 100755 --- a/jq/script-10.sh +++ b/jq/script-10.sh @@ -5,3 +5,5 @@ set -euo pipefail # The input for this script is the scores.json file. # TODO: Write a command to output the total of adding together all players' first scores. # Your output should be exactly the number 54. + +cat scores.json | jq '[.[].scores[0]] | add' \ No newline at end of file diff --git a/jq/script-11.sh b/jq/script-11.sh index d2337a6b2..5d1b1aa77 100755 --- a/jq/script-11.sh +++ b/jq/script-11.sh @@ -5,3 +5,5 @@ set -euo pipefail # The input for this script is the scores.json file. # TODO: Write a command to output the total of adding together all scores from all games from all players. # Your output should be exactly the number 164. + +cat scores.json | jq -r '[.[].scores | add] | add' \ No newline at end of file From 7614a6e9e0281f506e9ea893afdb4131a28c9a40 Mon Sep 17 00:00:00 2001 From: Craig D'Silva Date: Wed, 8 Jul 2026 11:20:43 +0100 Subject: [PATCH 2/5] Address jq feedback --- jq/script-01.sh | 2 +- jq/script-02.sh | 2 +- jq/script-03.sh | 2 +- jq/script-04.sh | 2 +- jq/script-05.sh | 2 +- jq/script-06.sh | 2 +- jq/script-07.sh | 2 +- jq/script-08.sh | 2 +- jq/script-09.sh | 2 +- jq/script-10.sh | 2 +- jq/script-11.sh | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/jq/script-01.sh b/jq/script-01.sh index 6a53b2c45..3eec38fed 100755 --- a/jq/script-01.sh +++ b/jq/script-01.sh @@ -6,4 +6,4 @@ set -euo pipefail # TODO: Write a command to output the name of the person. # Your output should be exactly the string "Selma", but should not contain any quote characters. -cat person.json | jq -r ".name" \ No newline at end of file +jq -r .name person.json \ No newline at end of file diff --git a/jq/script-02.sh b/jq/script-02.sh index eb2e6a721..c1d25ab82 100755 --- a/jq/script-02.sh +++ b/jq/script-02.sh @@ -6,4 +6,4 @@ set -euo pipefail # TODO: Write a command to output the address of the person, all on one line, with a comma between each line. # Your output should be exactly the string "35 Fashion Street, London, E1 6PX", but should not contain any quote characters. -cat person.json | jq -r '.address | join(", ")' \ No newline at end of file +jq -r '.address | join(", ")' person.json \ No newline at end of file diff --git a/jq/script-03.sh b/jq/script-03.sh index dc1fcb693..72f5d6093 100755 --- a/jq/script-03.sh +++ b/jq/script-03.sh @@ -6,4 +6,4 @@ set -euo pipefail # TODO: Write a command to output the name of the person, then a comma, then their profession. # Your output should be exactly the string "Selma, Software Engineer", but should not contain any quote characters. -cat person.json | jq -j '[.name, .profession] | join (", ")' \ No newline at end of file +jq -r '[.name, .profession] | join (", ")' person.json \ No newline at end of file diff --git a/jq/script-04.sh b/jq/script-04.sh index b47e833c5..756dd6702 100755 --- a/jq/script-04.sh +++ b/jq/script-04.sh @@ -7,4 +7,4 @@ set -euo pipefail # Your output should contain 6 lines, each with just one word on it. # Your output should not contain any quote characters. -cat scores.json | jq -r '.[].name' \ No newline at end of file +jq -r '.[].name' scores.json \ No newline at end of file diff --git a/jq/script-05.sh b/jq/script-05.sh index 688b91d40..b2c9516ae 100755 --- a/jq/script-05.sh +++ b/jq/script-05.sh @@ -6,4 +6,4 @@ set -euo pipefail # TODO: Write a command to output the names of each player, as well as their city. # Your output should contain 6 lines, each with two words on it. -cat scores.json | jq -r '.[] | [.name, .city] | join(" ")' \ No newline at end of file +jq -r '.[] | [.name, .city] | join(" ")' scores.json \ No newline at end of file diff --git a/jq/script-06.sh b/jq/script-06.sh index 5dea0e2a6..2d9e8ed40 100755 --- a/jq/script-06.sh +++ b/jq/script-06.sh @@ -7,4 +7,4 @@ set -euo pipefail # Your output should contain 6 lines, each with one word and one number on it. # The first line should be "Ahmed 1" with no quotes. -cat scores.json | jq -r '.[] | [.name, .scores[0]] | join(" ")' \ No newline at end of file +jq -r '.[] | [.name, .scores[0]] | join(" ")' scores.json \ No newline at end of file diff --git a/jq/script-07.sh b/jq/script-07.sh index 1e1cf9d74..1574d08a1 100755 --- a/jq/script-07.sh +++ b/jq/script-07.sh @@ -7,4 +7,4 @@ set -euo pipefail # Your output should contain 6 lines, each with one word and one number on it. # The first line should be "Ahmed 4" with no quotes. -cat scores.json | jq -r '.[] | [.name, .scores[-1]] | join(" ")' \ No newline at end of file +jq -r '.[] | [.name, .scores[-1]] | join(" ")' scores.json \ No newline at end of file diff --git a/jq/script-08.sh b/jq/script-08.sh index 96508b13f..2a2597390 100755 --- a/jq/script-08.sh +++ b/jq/script-08.sh @@ -7,4 +7,4 @@ set -euo pipefail # Your output should contain 6 lines, each with one word and one number on it. # The first line should be "Ahmed 3" with no quotes. -cat scores.json | jq -r '.[] | "\(.name) \(.scores | length)"' \ No newline at end of file +jq -r '.[] | "\(.name) \(.scores | length)"' scores.json \ No newline at end of file diff --git a/jq/script-09.sh b/jq/script-09.sh index 5ce02f8b1..219ca4b47 100755 --- a/jq/script-09.sh +++ b/jq/script-09.sh @@ -7,4 +7,4 @@ set -euo pipefail # Your output should contain 6 lines, each with one word and one number on it. # The first line should be "Ahmed 15" with no quotes. -cat scores.json | jq -r '.[] | "\(.name) \(.scores | add)"' \ No newline at end of file +jq -r '.[] | "\(.name) \(.scores | add)"' scores.json \ No newline at end of file diff --git a/jq/script-10.sh b/jq/script-10.sh index 4a63494dc..aca53e747 100755 --- a/jq/script-10.sh +++ b/jq/script-10.sh @@ -6,4 +6,4 @@ set -euo pipefail # TODO: Write a command to output the total of adding together all players' first scores. # Your output should be exactly the number 54. -cat scores.json | jq '[.[].scores[0]] | add' \ No newline at end of file +jq '[.[].scores[0]] | add' scores.json \ No newline at end of file diff --git a/jq/script-11.sh b/jq/script-11.sh index 5d1b1aa77..c6abf2d87 100755 --- a/jq/script-11.sh +++ b/jq/script-11.sh @@ -6,4 +6,4 @@ set -euo pipefail # TODO: Write a command to output the total of adding together all scores from all games from all players. # Your output should be exactly the number 164. -cat scores.json | jq -r '[.[].scores | add] | add' \ No newline at end of file +jq -r '[.[].scores | add] | add' scores.json \ No newline at end of file From 6eefb242ca2773c4b6de7fedee0282fa6499e7a0 Mon Sep 17 00:00:00 2001 From: Craig D'Silva Date: Wed, 8 Jul 2026 11:21:49 +0100 Subject: [PATCH 3/5] Remove -r flag to match json format --- jq/script-01.sh | 2 +- jq/script-02.sh | 2 +- jq/script-03.sh | 2 +- jq/script-04.sh | 2 +- jq/script-05.sh | 2 +- jq/script-06.sh | 2 +- jq/script-07.sh | 2 +- jq/script-08.sh | 2 +- jq/script-09.sh | 2 +- jq/script-11.sh | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/jq/script-01.sh b/jq/script-01.sh index 3eec38fed..cb511f0e8 100755 --- a/jq/script-01.sh +++ b/jq/script-01.sh @@ -6,4 +6,4 @@ set -euo pipefail # TODO: Write a command to output the name of the person. # Your output should be exactly the string "Selma", but should not contain any quote characters. -jq -r .name person.json \ No newline at end of file +jq .name person.json \ No newline at end of file diff --git a/jq/script-02.sh b/jq/script-02.sh index c1d25ab82..6f3c45013 100755 --- a/jq/script-02.sh +++ b/jq/script-02.sh @@ -6,4 +6,4 @@ set -euo pipefail # TODO: Write a command to output the address of the person, all on one line, with a comma between each line. # Your output should be exactly the string "35 Fashion Street, London, E1 6PX", but should not contain any quote characters. -jq -r '.address | join(", ")' person.json \ No newline at end of file +jq '.address | join(", ")' person.json \ No newline at end of file diff --git a/jq/script-03.sh b/jq/script-03.sh index 72f5d6093..c97628df0 100755 --- a/jq/script-03.sh +++ b/jq/script-03.sh @@ -6,4 +6,4 @@ set -euo pipefail # TODO: Write a command to output the name of the person, then a comma, then their profession. # Your output should be exactly the string "Selma, Software Engineer", but should not contain any quote characters. -jq -r '[.name, .profession] | join (", ")' person.json \ No newline at end of file +jq '[.name, .profession] | join (", ")' person.json \ No newline at end of file diff --git a/jq/script-04.sh b/jq/script-04.sh index 756dd6702..fa187e1ac 100755 --- a/jq/script-04.sh +++ b/jq/script-04.sh @@ -7,4 +7,4 @@ set -euo pipefail # Your output should contain 6 lines, each with just one word on it. # Your output should not contain any quote characters. -jq -r '.[].name' scores.json \ No newline at end of file +jq '.[].name' scores.json \ No newline at end of file diff --git a/jq/script-05.sh b/jq/script-05.sh index b2c9516ae..1e8ef48c7 100755 --- a/jq/script-05.sh +++ b/jq/script-05.sh @@ -6,4 +6,4 @@ set -euo pipefail # TODO: Write a command to output the names of each player, as well as their city. # Your output should contain 6 lines, each with two words on it. -jq -r '.[] | [.name, .city] | join(" ")' scores.json \ No newline at end of file +jq '.[] | [.name, .city] | join(" ")' scores.json \ No newline at end of file diff --git a/jq/script-06.sh b/jq/script-06.sh index 2d9e8ed40..993bc630d 100755 --- a/jq/script-06.sh +++ b/jq/script-06.sh @@ -7,4 +7,4 @@ set -euo pipefail # Your output should contain 6 lines, each with one word and one number on it. # The first line should be "Ahmed 1" with no quotes. -jq -r '.[] | [.name, .scores[0]] | join(" ")' scores.json \ No newline at end of file +jq '.[] | [.name, .scores[0]] | join(" ")' scores.json \ No newline at end of file diff --git a/jq/script-07.sh b/jq/script-07.sh index 1574d08a1..baf882186 100755 --- a/jq/script-07.sh +++ b/jq/script-07.sh @@ -7,4 +7,4 @@ set -euo pipefail # Your output should contain 6 lines, each with one word and one number on it. # The first line should be "Ahmed 4" with no quotes. -jq -r '.[] | [.name, .scores[-1]] | join(" ")' scores.json \ No newline at end of file +jq '.[] | [.name, .scores[-1]] | join(" ")' scores.json \ No newline at end of file diff --git a/jq/script-08.sh b/jq/script-08.sh index 2a2597390..3d527af08 100755 --- a/jq/script-08.sh +++ b/jq/script-08.sh @@ -7,4 +7,4 @@ set -euo pipefail # Your output should contain 6 lines, each with one word and one number on it. # The first line should be "Ahmed 3" with no quotes. -jq -r '.[] | "\(.name) \(.scores | length)"' scores.json \ No newline at end of file +jq '.[] | "\(.name) \(.scores | length)"' scores.json \ No newline at end of file diff --git a/jq/script-09.sh b/jq/script-09.sh index 219ca4b47..7995722e6 100755 --- a/jq/script-09.sh +++ b/jq/script-09.sh @@ -7,4 +7,4 @@ set -euo pipefail # Your output should contain 6 lines, each with one word and one number on it. # The first line should be "Ahmed 15" with no quotes. -jq -r '.[] | "\(.name) \(.scores | add)"' scores.json \ No newline at end of file +jq '.[] | "\(.name) \(.scores | add)"' scores.json \ No newline at end of file diff --git a/jq/script-11.sh b/jq/script-11.sh index c6abf2d87..d9aecbc02 100755 --- a/jq/script-11.sh +++ b/jq/script-11.sh @@ -6,4 +6,4 @@ set -euo pipefail # TODO: Write a command to output the total of adding together all scores from all games from all players. # Your output should be exactly the number 164. -jq -r '[.[].scores | add] | add' scores.json \ No newline at end of file +jq '[.[].scores | add] | add' scores.json \ No newline at end of file From 34d446380d6919ea7e8cb33913849a2a1fb982cd Mon Sep 17 00:00:00 2001 From: Craig D'Silva Date: Fri, 10 Jul 2026 08:32:09 +0100 Subject: [PATCH 4/5] Revert --- jq/script-01.sh | 2 +- jq/script-02.sh | 2 +- jq/script-03.sh | 2 +- jq/script-04.sh | 2 +- jq/script-05.sh | 2 +- jq/script-06.sh | 2 +- jq/script-07.sh | 2 +- jq/script-08.sh | 2 +- jq/script-09.sh | 2 +- jq/script-10.sh | 2 +- jq/script-11.sh | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/jq/script-01.sh b/jq/script-01.sh index cb511f0e8..807d816d1 100755 --- a/jq/script-01.sh +++ b/jq/script-01.sh @@ -6,4 +6,4 @@ set -euo pipefail # TODO: Write a command to output the name of the person. # Your output should be exactly the string "Selma", but should not contain any quote characters. -jq .name person.json \ No newline at end of file +cat person.json | jq -r ".name" diff --git a/jq/script-02.sh b/jq/script-02.sh index 6f3c45013..eb2e6a721 100755 --- a/jq/script-02.sh +++ b/jq/script-02.sh @@ -6,4 +6,4 @@ set -euo pipefail # TODO: Write a command to output the address of the person, all on one line, with a comma between each line. # Your output should be exactly the string "35 Fashion Street, London, E1 6PX", but should not contain any quote characters. -jq '.address | join(", ")' person.json \ No newline at end of file +cat person.json | jq -r '.address | join(", ")' \ No newline at end of file diff --git a/jq/script-03.sh b/jq/script-03.sh index c97628df0..7c2f661d1 100755 --- a/jq/script-03.sh +++ b/jq/script-03.sh @@ -6,4 +6,4 @@ set -euo pipefail # TODO: Write a command to output the name of the person, then a comma, then their profession. # Your output should be exactly the string "Selma, Software Engineer", but should not contain any quote characters. -jq '[.name, .profession] | join (", ")' person.json \ No newline at end of file +cat person.json | jq -j '[.name, .profession] | join (", ")' diff --git a/jq/script-04.sh b/jq/script-04.sh index fa187e1ac..a24f35c92 100755 --- a/jq/script-04.sh +++ b/jq/script-04.sh @@ -7,4 +7,4 @@ set -euo pipefail # Your output should contain 6 lines, each with just one word on it. # Your output should not contain any quote characters. -jq '.[].name' scores.json \ No newline at end of file +cat scores.json | jq -r '.[].name' diff --git a/jq/script-05.sh b/jq/script-05.sh index 1e8ef48c7..cfe8acc70 100755 --- a/jq/script-05.sh +++ b/jq/script-05.sh @@ -6,4 +6,4 @@ set -euo pipefail # TODO: Write a command to output the names of each player, as well as their city. # Your output should contain 6 lines, each with two words on it. -jq '.[] | [.name, .city] | join(" ")' scores.json \ No newline at end of file +cat scores.json | jq -r '.[] | [.name, .city] | join(" ")' diff --git a/jq/script-06.sh b/jq/script-06.sh index 993bc630d..24f0b197f 100755 --- a/jq/script-06.sh +++ b/jq/script-06.sh @@ -7,4 +7,4 @@ set -euo pipefail # Your output should contain 6 lines, each with one word and one number on it. # The first line should be "Ahmed 1" with no quotes. -jq '.[] | [.name, .scores[0]] | join(" ")' scores.json \ No newline at end of file +cat scores.json | jq -r '.[] | [.name, .scores[0]] | join(" ")' diff --git a/jq/script-07.sh b/jq/script-07.sh index baf882186..bcaec1bf0 100755 --- a/jq/script-07.sh +++ b/jq/script-07.sh @@ -7,4 +7,4 @@ set -euo pipefail # Your output should contain 6 lines, each with one word and one number on it. # The first line should be "Ahmed 4" with no quotes. -jq '.[] | [.name, .scores[-1]] | join(" ")' scores.json \ No newline at end of file +cat scores.json | jq -r '.[] | [.name, .scores[-1]] | join(" ")' diff --git a/jq/script-08.sh b/jq/script-08.sh index 3d527af08..c45801f62 100755 --- a/jq/script-08.sh +++ b/jq/script-08.sh @@ -7,4 +7,4 @@ set -euo pipefail # Your output should contain 6 lines, each with one word and one number on it. # The first line should be "Ahmed 3" with no quotes. -jq '.[] | "\(.name) \(.scores | length)"' scores.json \ No newline at end of file +cat scores.json | jq -r '.[] | "\(.name) \(.scores | length)"' diff --git a/jq/script-09.sh b/jq/script-09.sh index 7995722e6..290ca653a 100755 --- a/jq/script-09.sh +++ b/jq/script-09.sh @@ -7,4 +7,4 @@ set -euo pipefail # Your output should contain 6 lines, each with one word and one number on it. # The first line should be "Ahmed 15" with no quotes. -jq '.[] | "\(.name) \(.scores | add)"' scores.json \ No newline at end of file +cat scores.json | jq -r '.[] | "\(.name) \(.scores | add)"' diff --git a/jq/script-10.sh b/jq/script-10.sh index aca53e747..4a63494dc 100755 --- a/jq/script-10.sh +++ b/jq/script-10.sh @@ -6,4 +6,4 @@ set -euo pipefail # TODO: Write a command to output the total of adding together all players' first scores. # Your output should be exactly the number 54. -jq '[.[].scores[0]] | add' scores.json \ No newline at end of file +cat scores.json | jq '[.[].scores[0]] | add' \ No newline at end of file diff --git a/jq/script-11.sh b/jq/script-11.sh index d9aecbc02..3137bb9d2 100755 --- a/jq/script-11.sh +++ b/jq/script-11.sh @@ -6,4 +6,4 @@ set -euo pipefail # TODO: Write a command to output the total of adding together all scores from all games from all players. # Your output should be exactly the number 164. -jq '[.[].scores | add] | add' scores.json \ No newline at end of file +cat scores.json | jq -r '[.[].scores | add] | add' From 4b57f7c7620755c498de61b601c65959443b87c0 Mon Sep 17 00:00:00 2001 From: Craig D'Silva Date: Fri, 10 Jul 2026 08:35:13 +0100 Subject: [PATCH 5/5] Address feedback --- jq/script-03.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jq/script-03.sh b/jq/script-03.sh index 7c2f661d1..ab4a931f3 100755 --- a/jq/script-03.sh +++ b/jq/script-03.sh @@ -6,4 +6,4 @@ set -euo pipefail # TODO: Write a command to output the name of the person, then a comma, then their profession. # Your output should be exactly the string "Selma, Software Engineer", but should not contain any quote characters. -cat person.json | jq -j '[.name, .profession] | join (", ")' +cat person.json | jq -r '[.name, .profession] | join (", ")'