0
votes
1answer
265 views

Can I use gnu grep to search for unmatched parens (and similar)?

I write text files in the MoinMoin Wiki markup language in a text editor (emacs). When I mis-place one of the special tags my whole page gets mangled with the wrong formatting -- or worse. I always ...
0
votes
2answers
249 views

Grep log for certain word only if followed by another word

I have a log file with entries like the following: Input php notice bob php notice winner php notice blah winner php notice asfsdf test php erro)r bob ...
8
votes
2answers
9k views

How to Combine find and grep for a complex search? ( GNU/linux, find, grep )

I'm trying to do a text search in some files that share a similar directory structure, but are not in the same directory tree, in GNU/Linux. I have a web server with many sites that share the same ...