Summer Certification Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

CompTIA Linux+ V8 Exam XK0-006 Question # 36 Topic 4 Discussion

CompTIA Linux+ V8 Exam XK0-006 Question # 36 Topic 4 Discussion

XK0-006 Exam Topic 4 Question 36 Discussion:
Question #: 36
Topic #: 4

In the echo " profile-$num-$name " line of a shell script, the variable $num seems to not be expanding during execution. Which of the following notations ensures the value is expanded?


A.

echo " profile-$(num)-$name "


B.

echo ' profile-$num-$name '


C.

echo " profile- ' $num ' -$name "


D.

echo " profile-${num}-$name "


Get Premium XK0-006 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.