Search found 1 match

by ktabri
Fri Nov 02, 2012 3:07 pm
Forum: General
Topic: Replace a text wiht specific value obtained within text
Replies: 1
Views: 413

Replace a text wiht specific value obtained within text

Hi Forum
I have a replacing problem. Say, that I have a text file, that occasionally contains sections similar to this below:
/COM, REAL 1
Mat, 1
R, 2

I would like to replace the number 2 in the last line (R, 2), with the number 1 obtained in from the first line after the text REAL 1, i.e. after ...