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.

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.

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



Leave a Reply 8

Your email address will not be published. Required fields are marked *


steven kunjachan

steven kunjachan

grep ‘abcde’ /etc/testfile >> /tmp/testfile

mortimor

mortimor

awk ‘/abcde/’ /etc/testfile > /tmp/testfile

atcha messa noutifafa

atcha messa noutifafa

Good morning everyone
Please I want to correpond with all persons who like REDHAT

Jacob Miles

Jacob Miles

Recommend using the -r flag

awk -r ‘/abcde/’ /etc/testfile > /tmp/testfile

Sidney Doffe

Sidney Doffe

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.

4. Recommend to learn the newest Red Hat EX200 dumps from passleader.com, here you can get FREE version of new passleader EX200 dumps (108 Actual Labs) on Google Drive:

https://drive.google.com/open?id=0B-ob6L_QjGLpM1FIWmJ5UlRHZVE

GOOD LUCK!!!