Hi,
I have a file with the following content:
---------
a 3242 tc_5 gdfg4
random text
a 3242 tc_6 gdfg4
random text
a 3242 tc_7 gdfg4
random text
a 3242 tc_4 gdfg4
---------
I want to replace the lines containing tc_? (tc_5, tc_6 etc. even with unknown numbers) with the found pattern (including the unknown numbers). The result file should look like:
---------
tc_5
random text
tc_6
random text
tc_7
random text
tc_4
---------
Thanks in advance.
Joas