Page 1 of 1

numeric replacement

Posted: Wed Dec 31, 2003 1:16 pm
by solaris
i want make a numeric replacement.
Example:

c:\done\test.bat
c:\done\test2.bat
i want make the numeric after word "text" automaticlly continued until test234.bat(c:\done\test.bat-c:\done\test234.bat).how to do that,i try with replace menu but dead end :cry: .

Sorry for my bad english :wink:

Posted: Wed Dec 31, 2003 3:32 pm
by talleyrand
I'm not a wiz at it, but right click and select block-mode. Highlight the 324 lines you want (You may need to hit return 324 times). Do a Fill Selected Block with Numbers starting at 1.

After you have 1-324, do a searh and replace.
Find What: ([[:digit:]]*)
Replace With: c:\\done\\test\1.bat
Using POSIX syntax.

Final step is to add your first line c:\done\test.bat