We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85ffbc0 commit f210e74Copy full SHA for f210e74
jq/script-02.sh
@@ -5,4 +5,5 @@ set -euo pipefail
5
# The input for this script is the person.json file.
6
# TODO: Write a command to output the address of the person, all on one line, with a comma between each line.
7
# Your output should be exactly the string "35 Fashion Street, London, E1 6PX", but should not contain any quote characters.
8
- jq -r '.address[0] + ", " + .address[1]+ ", "+ .address[2]' person.json
+
9
+ jq -r '.address | join(", ")' person.json
0 commit comments