Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

RedHat Exam EX200 Topic 1 Question 79 Discussion

Actual exam question for RedHat's EX200 exam
Question #: 79
Topic #: 1
[All EX200 Questions]

Find the rows that contain abcde from file /etc/testfile, and write it to the file/tmp/testfile, and the sequence is requested as the same as /etc/testfile.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Ivette
1 months ago
As long as it works, I'm happy. Now, where's the free coffee and doughnuts for this exam?
upvoted 0 times
Becky
14 days ago
Yeah, the second option seems more straightforward to me.
upvoted 0 times
...
Oretha
19 days ago
I think the first option is better for finding rows with abcde.
upvoted 0 times
...
...
Nieves
1 months ago
I'm wondering if there's a way to do this in a single line. Maybe like `grep 'abcde' /etc/testfile > /tmp/testfile`.
upvoted 0 times
...
Hillary
2 months ago
The first solution with the while loop is a bit overkill for this simple task. The grep solution is the way to go.
upvoted 0 times
Ammie
3 days ago
Using a while loop for this task is unnecessary.
upvoted 0 times
...
Ammie
1 months ago
I agree, the grep solution is much simpler and efficient.
upvoted 0 times
...
...
Pilar
2 months ago
I like the grep solution because it's more concise and easier to read.
upvoted 0 times
Providencia
14 days ago
I prefer the first solution with the while loop, it feels more organized to me.
upvoted 0 times
...
Providencia
1 months ago
I agree, the grep solution is much simpler to use.
upvoted 0 times
...
...
Jarvis
2 months ago
The first solution looks more straightforward, but the second one using grep is more efficient.
upvoted 0 times
Layla
13 days ago
The first solution may be easier to understand, but efficiency is important too.
upvoted 0 times
...
Vivan
16 days ago
I agree, the second solution using grep is definitely more efficient.
upvoted 0 times
...
Justine
21 days ago
I think the second solution is better, it's more efficient.
upvoted 0 times
...
Clarence
1 months ago
I prefer the first solution, it's easier to understand.
upvoted 0 times
...
...
Judy
2 months ago
I would use the first option with while loop to find and write rows with abcde.
upvoted 0 times
...
Alise
2 months ago
I agree, it requires knowledge of command line.
upvoted 0 times
...
Judy
2 months ago
I think this question is tricky.
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