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.
4 years ago