Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.
SIMULATION - 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.
There is no specified if the content of destination file can be replaced. So i suppose that it can.. in that case these commands are correct:
cat /etc/testfile | grep abcde > /tmp/testfile
OR
grep abcde /etc/testfile > /tmp/testfile
In case that content of destination file should not be replaced, following command will work:
cat /etc/testfile | while read line; do echo $line | grep abcde | tee -a /tmp/testfile; done
There is missing ";" in "correct answer" here, so the command from there will work if you will copy paste it but if you need to write it on your own, you must add the ";" or use bash script!
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.
airphreak
Highly Voted 2 years, 9 months agoadolfoale
Highly Voted 2 years, 8 months agoertgrty
Most Recent 1 month agoRahul95
3 months, 4 weeks agoVelda
6 months, 2 weeks agotechzideas
7 months, 4 weeks agoktd971
8 months agoptmude
1 year, 8 months agoeid
1 year, 9 months agoMELO225
2 years ago