I want to write a command to display all the lines in a given file that end with a ";" or a "." character.
Why does this not work?
grep ".';' | .'\.'" filename
grep "[;.]$" list-of-files
This matches any line which contains either ; or . followed by the end of the line.
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
4 years ago