doublea1535
IS-IT--Management
Hello all,
I am trying to parse a field of info from a text file. The issue at the moment is that there can be extra characters between the anchor that I am using to search for and the actual value that I need. For example :
What I need to do is get the entire text from "Problem" until the first period at the end of the sentence. How could I do this even if the output spans multiple lines? I was just using grep until I discovered that the data can span multiple lines at times. When this happens I don't get the output I need.
Please help!
I am trying to parse a field of info from a text file. The issue at the moment is that there can be extra characters between the anchor that I am using to search for and the actual value that I need. For example :
Code:
Problem Description: Network connection timed out.
Code:
Problem Description:
Network connection timed out.
Code:
Problem Description: =20=20=20
blahblahblahblah
Network connection timed out.
What I need to do is get the entire text from "Problem" until the first period at the end of the sentence. How could I do this even if the output spans multiple lines? I was just using grep until I discovered that the data can span multiple lines at times. When this happens I don't get the output I need.
Please help!