Copy line then change its value
Posted: Thu Jan 27, 2011 8:34 pm
Hello,
I'm new TextPad user! I have a very large file to edit (600000 lines). I would like to do as following:
1- Find the line have this format:
ATTR Type="STRING" Key="Name" Value=
It's complete line is, because the data after "Value=" is difference from time to time
ATTR Type="STRING" Key="Name" Value="1SA - 123.4567.890-00"
2- Copy a complete line and insert it right below the original line
3- Change the Key="Name" of the copied line to Key="ALT"
Is there the way to have a macro to complete this task? Please help!
I would like to show again my example of what i try to accomplish
Existing file:
ATTR Type="STRING" Key="Name" Value="1SA - 123.4567.890-00"
Result after copy:
ATTR Type="STRING" Key="Name" Value="1SA - 123.4567.890-00"
ATTR Type="STRING" Key="ALT" Value="1SA - 123.4567.890-00"
Thanks!
I'm new TextPad user! I have a very large file to edit (600000 lines). I would like to do as following:
1- Find the line have this format:
ATTR Type="STRING" Key="Name" Value=
It's complete line is, because the data after "Value=" is difference from time to time
ATTR Type="STRING" Key="Name" Value="1SA - 123.4567.890-00"
2- Copy a complete line and insert it right below the original line
3- Change the Key="Name" of the copied line to Key="ALT"
Is there the way to have a macro to complete this task? Please help!
I would like to show again my example of what i try to accomplish
Existing file:
ATTR Type="STRING" Key="Name" Value="1SA - 123.4567.890-00"
Result after copy:
ATTR Type="STRING" Key="Name" Value="1SA - 123.4567.890-00"
ATTR Type="STRING" Key="ALT" Value="1SA - 123.4567.890-00"
Thanks!