Hi,
Need to print only the first line that has a match ...
I have a line in a file :
“ 2019-02-02 17:12:02.860,10552 ,Information," Test Program Name: Something else“
And the part of the line I need is - “Test Program Name: Something else”
I’d like to print only first line that matched the strings that have the same “ Test Program Name: “
And the same for this line:
“2019-02-02 17:12:02.865,10552 ,Information,"[LOT] Product: Something else"
I need only this part of the line - “Product: Something else”
I’d like to print only the first line that matches and ignore the rest of the lines that matched.
Thank you.
Need to print only the first line that has a match ...
I have a line in a file :
“ 2019-02-02 17:12:02.860,10552 ,Information," Test Program Name: Something else“
And the part of the line I need is - “Test Program Name: Something else”
I’d like to print only first line that matched the strings that have the same “ Test Program Name: “
And the same for this line:
“2019-02-02 17:12:02.865,10552 ,Information,"[LOT] Product: Something else"
I need only this part of the line - “Product: Something else”
I’d like to print only the first line that matches and ignore the rest of the lines that matched.
Thank you.