numeric replacement

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
solaris
Posts: 1
Joined: Wed Dec 31, 2003 1:10 pm

numeric replacement

Post 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:
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post 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
I choose to fight with a sack of angry cats.
Post Reply