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:

Gerald
8 days ago
Option D is the way to go. The '-i' flag modifies the file in place, which is exactly what the question asks for.
upvoted 0 times
...
Estrella
11 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
17 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
18 days ago
I agree with Larae, using -i option will change the file in place.
upvoted 0 times
...
Larae
19 days ago
I think the answer is D.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77