PrepAway - Latest Free Exam Questions & Answers

Find the rows that contain abcde from file /etc/testfile, and write it to the file/tmp/testfile…

CORRECT TEXT
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.

PrepAway - Latest Free Exam Questions & Answers

Answer: A

Explanation:
# cat /etc/testfile | while read line;
do
echo $line | grep abcde | tee -a /tmp/testfile
done
OR
grep `abcde’ /etc/testfile > /tmp/testfile

7 Comments on “Find the rows that contain abcde from file /etc/testfile, and write it to the file/tmp/testfile…

  1. Sidney Doffe says:

    Red Hat EX200 Passing Tips FYI:

    As we all konw, the Red Hat EX200 has been updated from version 6 to version 7 NOW. There are MANY new topics in the RHEL 7 EX200 exam: the COMMANDS like NMCLI and so on.

    Difference between RHEL 7 EX200 exam and RHEL 6 EX200 exam FYI:

    1. systemctl VS init
    2. journalctl in combination with syslog
    3. gdisk VS fdisk
    4. firewalld VS iptables
    …etc.

    When preparing for the Red Hat EX200 exam, I suggest you:

    1. DO NOT only learn the RHEL 6 study materials, read the RHEL 7 study materials as much as possible.

    2. Pay close attention to these objects:
    (a) Configure a default software repository for your system
    (b) Adjust the size of the Logical Volume
    (c) Configure /var/tmp/fstab Permission
    (d) Configure a cron Task
    (e) Create a Shared Directory
    (f) Configure NTP
    (g) Add a swap partition
    (h) Search files and string
    (i) Create a logical volume

    3. Reading the Red Hat official EX200 study guide carefully and deeply.




    3



    0

Leave a Reply