I have several lines text file and would like to get only the first line that is modified.
For example I have the follow text file and would like to get the ID number:
something 1 is written here
My ID 1234 for file A
something 2 is written here
My ID 1234 for file A
something 3 is written here
My batch file jrepl command is:
call jrepl ".*My ID ([0-9]+).*" "$1" /F "file.txt" /A /O "result.txt"
But the results is for all modified lines, thus "results.txt" contains :
1234
1234
How can I command jrepl to stop after the first modified line that is printed out ?
I must say that I saw a similar question here, but I didn't succeed to follow , also seems to me complicated for such simple need.