Grep part of line
807567Apr 12 2001 — edited Apr 18 2001What I am trying to do is get the "Point of contact" and "Name of
person" and name of file. I have many files to search and I want to
get all of the point of contact names in each file with the file name.
I tried grep and it lists the whole line but I only want specific info that is printed on the one line such as "point of contact is Mike Smith".
How do I cut off the stuff I dont need on that info line and just the
"point of contact is Name of person".
My output should look like this:
Point of contact Mike Smith Filename1
Point of contact Mark Jones Filename2
Point of contact John Miller Filename3
etc....
where I can have the Point of contact, Name of person and
the file name.
Thanks.