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 d175bfe commit 79b4564Copy full SHA for 79b4564
jq/script-02.sh
@@ -6,4 +6,4 @@ set -euo pipefail
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
path="/Users/cyf/Documents/SDC/Module-Tools/jq/person.json"
9
-jq -r '.address | "\(.[0]), \(.[1]), \(.[2])"' $path
+jq -r '.address | join(", ")' "$path"
0 commit comments