exam questions

Exam XK0-004 All Questions

View all questions & answers for the XK0-004 exam

Exam XK0-004 topic 1 question 121 discussion

Actual exam question from CompTIA's XK0-004
Question #: 121
Topic #: 1
[All XK0-004 Questions]

A user wants to list the lines of a log, adding a correlative number at the beginning of each line separated by a set of dashes from the actual message. Which of the following scripts will complete this task?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: B

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
FilipIT
Highly Voted 4 years, 3 months ago
A is correct answer i checked every answer and only "A" was working.
upvoted 13 times
...
ssc1982
Highly Voted 4 years, 4 months ago
The answer is A: B the command is incorrect C need $ sign before the parameter D need a another pair of parenthese
upvoted 10 times
...
DiaaEmara
Most Recent 2 years, 5 months ago
THE Answer is D https://stackoverflow.com/questions/31255699/double-parenthesis-with-and-without-dollar/31255942
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago