Q.

How would you search for the string clothes at the end of the line in a file called shopping?

A. grep 'clothes#' shopping
B. grep 'clothes!' shopping
C. grep 'clothes$' shopping
D. grep 'clothes^' shopping
Answer» C. grep 'clothes$' shopping
1.8k
0
Do you find this helpful?
12

View all MCQs in

Linux Operating System

Discussion

AEK

Alex Ehsaan Kapadia
1 month ago

Question: What other flags or options can be added to the grep command to modify the search results for the given string in a file?
1