Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GAQM Exam LCP-001 Topic 3 Question 60 Discussion

Actual exam question for GAQM's LCP-001 exam
Question #: 60
Topic #: 3
[All LCP-001 Questions]

Which of the following sed commands will replace all instances of the string foo with the string foobar changing the file file1.txt in place?

Show Suggested Answer Hide Answer
Suggested Answer: C, E

Contribute your Thoughts:

Estrella
3 days ago
Option A is the correct answer. It uses the 's' command to replace 'foo' with 'foobar' and the 'g' flag to replace all occurrences.
upvoted 0 times
...
Shawna
9 days ago
I'm not sure, but I think option D makes sense because it uses -i flag for in-place editing.
upvoted 0 times
...
Georgeanna
10 days ago
I agree with Larae, using -i option will change the file in place.
upvoted 0 times
...
Larae
11 days ago
I think the answer is D.
upvoted 0 times
...

Save Cancel