I have a text file with the following content:
Read the `lmn(7)` man page but not qrs(6).
* abc(1)
* `efg(3)`
* `ijk(1)`
* xyz(5)
I want now to filter for all lines that contain a man page name that is not in backticks? The expected output is:
Read the `lmn(7)` man page but not qrs(6).
* abc(1)
* xyz(5)
For demonstration purposes, I need this as a single grep command and not with other tools or piped.
I tried the following, but it only returns the first line:
$ egrep '[^`][a-z]*\([0-9]\)[^`]'