Article 6M7ES reading a tagged log

reading a tagged log

by
Rosemary-Lane
from LinuxQuestions.org on (#6M7ES)
I have a log file with simple(no meta characters) text lines. Each entry starts with a + followed by the name of the person who added an entry to the log. So for example:

+Alan
line1
line2

more lines
some blanks lines

+David
line
more lines

still more lines
+Alan
...
...
+Chris
..
..

What is a good way to filter out all the entries by, say,Alan? Blank lines must be maintained as part of the entry.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments