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

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
15 days ago
As long as it works, I'm happy. Now, where's the free coffee and doughnuts for this exam?
upvoted 0 times
...
Nieves
26 days 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
27 days 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
15 days ago
I agree, the grep solution is much simpler and efficient.
upvoted 0 times
...
...
Pilar
1 months ago
I like the grep solution because it's more concise and easier to read.
upvoted 0 times
Providencia
20 days ago
I agree, the grep solution is much simpler to use.
upvoted 0 times
...
...
Jarvis
1 months ago
The first solution looks more straightforward, but the second one using grep is more efficient.
upvoted 0 times
Justine
3 days ago
I think the second solution is better, it's more efficient.
upvoted 0 times
...
Clarence
18 days 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