i have created a script which is storing its output into a file . i am trying to read lines of this files appearing in between pattern1 to pattern2 through relevance.
Easiest way I’ve seen is to decide on a pattern (that WON’T appear in the file), concat the lines together using that pattern, and then use “substrings separated by MYTAG of preceding text of following text of …”
Get lines between “tag 1” and “tag 2”:
q:
lines
of
file
“c:\temp\test.txt”
A:
line a
A:
tag 1
A:
line b
A:
line c
A:
line d
A:
tag 2
A:
line e
T:
0.207 ms
I:
plural file line
q:
concatenation
“|||”
of
lines
of
file
“c:\temp\test.txt”
A:
line a|||tag 1|||line b|||line c|||line d|||tag 2|||line e
i have pattern like : 11.1.10,REV=2005.01.21.16.34
so i would like to have only 11.1.10 read from the above line that is relevance should check for pattern REV and should exclude anything appended after REV alongwith word REV.
Please suggest the relevance i have to write to achieve this result…
Could you let me know how can we detect the pattern which will identify “.” that is in above example “dcn1pclx42a.” and remove this part and read only the remianing part.