Answer the question
In order to leave comments, you need to log in
What regular expression is suitable for grep?
Good afternoon! I'm trying to get lines from the file that contain either Archive or Clients and so that after these words there is an end of the line.
This is how it works: grep -E "Archive|Clients" but also shows those lines where these words are not at the end of the line.
But grep -E "Archive$|Clients$" doesn't work. Please help me figure it out, thanks in advance.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question