Posted on

Linux LX0-103 Exam 1 samples – Question 55

Which grep command will print only the lines that do not end with a / in the file foo?

A. grep ‘/$’ foo
B. grep ‘/#’ foo
C. grep -v ‘/$’ foo
D. grep -v ‘/#’ foo

Correct Answer: C
Section: GNU and Unix Commands

Leave a Reply

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