exam questions

Exam EX200 All Questions

View all questions & answers for the EX200 exam

Exam EX200 topic 1 question 38 discussion

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

SIMULATION -

Search a String -
Find out all the columns that contains the string seismic within /usr/share/dict/words, then copy all these columns to /root/lines.tx in original order, there is no blank line, all columns must be the accurate copy of the original columns.

Show Suggested Answer Hide Answer
Suggested Answer: See explanation below.
grep seismic /usr/share/dict/words > /root/lines.txt

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
MisterR0B0T
2 months, 4 weeks ago
grep seismic /usr/share/dict/words > /root/lines.txt or vi /opt/searchfile.sh #!/bin/bash grep seismic /usr/share/dict/words > /root/lines.txt chmod 755 searchfile.sh (optional is asked) cp /opt/searchfile.sh /usr/local/bin
upvoted 1 times
...
KimoHasNoBalls
2 years, 3 months ago
Do they want "rows" or "columns" ? No idea how to find and redirect columns but rows is easy
upvoted 2 times
...
14_aman
2 years, 6 months ago
IF I do run this command : grep seismic -w /usr/share/dict/words > /root/lines.tx . please explain . Am I saying right ?
upvoted 1 times
...
noobmaster96
3 years ago
cat /usr/share/dict/words | grep seismic > /lines.tx
upvoted 1 times
...
STFN2019
3 years, 2 months ago
grep seismic /usr/share/dict/words > /root/lines.tx cat /root/lines.tx
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 ...