Search found 3 matches
- 24 Jan 2019 09:19
- Forum: DOS Batch Forum
- Topic: FindRepl.bat:New regex utility to search and replace strings
- Replies: 139
- Views: 297597
Re: FindRepl.bat:New regex utility to search and replace strings
Bug detected when I run my command more than once: First time it works, 2nd and succeeding run fails; it will take awhile before it will work again. >type %PARTNER_CONFIG% | findrepl "^\[%PARTNER%\]" /E:"\[END\]" | findrepl /I /V "%COMPUTERNAME%" The system cannot find the file specified. D:\MyApps\...
- 24 Jan 2019 09:04
- Forum: DOS Batch Forum
- Topic: FindRepl.bat:New regex utility to search and replace strings
- Replies: 139
- Views: 297597
Re: FindRepl.bat:New regex utility to search and replace strings
I want to exclude the BEGIN and END lines on one pass. eg., Input data looks like this: …. [NAME001] somevalue001 [END] [NAME002] somevalue002A somevalue002B somevalue002C [END] …….. where PARTNER=NAME002 COMPUTERNAME=somevalue00B I want to exclude the BEGIN and END lines [NAME002] and [END]. Is the...
- 26 Oct 2018 06:26
- Forum: DOS Batch Forum
- Topic: FindRepl.bat:New regex utility to search and replace strings
- Replies: 139
- Views: 297597
Re: FindRepl.bat:New regex utility to search and replace strings
I am trying to use this inside a DOS batch script to dynamically generate scripts based upon incoming parameters. I have the following as an example: Of course the set variable values is actually passed into this script and not hard-coded as shown: set PARM="filename with space" set FNAME="d:\direct...