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
7 months agoMicaela
8 months agoFrance
8 months agoParis
8 months agoAmie
8 months agoLeslie
9 months agoLorean
9 months agoVallie
9 months agoBenedict
9 months agoFatima
9 months agoEdelmira
9 months agoRefugia
9 months agoBuddy
9 months agoIlene
9 months agoGrover
9 months agoTammi
9 months agoBernardo
9 months agoDulce
10 months agoBrett
10 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