Skip to content

Commit fc57ddf

Browse files
committed
Fix jq script 03 output
1 parent 56c6bb8 commit fc57ddf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jq/script-03.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set -euo pipefail
55
# The input for this script is the person.json file.
66
# TODO: Write a command to output the name of the person, then a comma, then their profession.
77
# Your output should be exactly the string "Selma, Software Engineer", but should not contain any quote characters.
8-
jq -r '.name + ", " + .profession' person.json;
8+
jq -r '"\(.name), \(.profession)"' person.json

0 commit comments

Comments
 (0)