RedHat EX200 Exam - Topic 1 Question 79 Discussion
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.
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
Tamera
9 months agoMicaela
10 months agoFrance
10 months agoParis
10 months agoAmie
10 months agoLeslie
11 months agoLorean
11 months agoVallie
11 months agoBenedict
11 months agoFatima
11 months agoEdelmira
11 months agoRefugia
11 months agoBuddy
11 months agoIlene
11 months agoGrover
11 months agoTammi
11 months agoBernardo
11 months agoDulce
11 months agoBrett
12 months agoIvette
1 year agoRex
1 year agoCarlee
1 year agoBecky
1 year agoOretha
1 year agoNieves
1 year agoHillary
1 year agoAmmie
1 year agoAmmie
1 year agoPilar
1 year agoProvidencia
1 year agoProvidencia
1 year agoJarvis
1 year agoLayla
1 year agoVivan
1 year agoJustine
1 year agoClarence
1 year agoJudy
1 year agoAlise
1 year agoJudy
1 year ago