Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Grep part of line

807567Apr 12 2001 — edited Apr 18 2001
What 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 16 2001
Added on Apr 12 2001
8 comments
239 views