i have a file wherein i want to find a string and copy the string after that and paste that other string to a new file.
ex:
TOTAL 123456
find "TOTAL" and copy "123456"
and paste "123456" to a new file
NOTE: there are many "TOTAL" strings on that file.
For example:
2345
4567
8910
TOTAL 1234
......
3456
7890
1234
TOTAL 5678
.....
In a file, there are many lines with "TOTAL" on it. I want to find "TOTAL" on that file and copy the next string after that on that certain line. Afterwards, paste that other string a new file.
Actualy, i haven't tried anythng yet. I don't know where to start. Tnx!
---------- Post updated at 01:14 PM ---------- Previous update was at 01:12 PM ----------
And there is no fixed interval on the occurence of the "TOTAL"s lines. Thanks!