"Galop" <(E-Mail Removed)> wrote in message
news:8F9FE517-433D-4340-918B-(E-Mail Removed)...
> I have an automated process produces many *.txt files in a specific
folder.
> It is continuos text which runs to 20 to 30 pages without page break. I
want
> a utility that I can run throgh batch process to insert a page break
before
> the word "Hello". So that every page is started fresh wherever it has
"Hello"
> word.
> Any ideas to accomplish this task?
You could use this batch file:
@echo off
for /F "tokens=*" %%* in ('type test.txt') do (
echo %%* | find /i "Hello" > nul && echo.>>test1.txt
echo %%* >> test1.txt
)
It has some restrictions:
- I expect it to take some time to run through 30 pages.
- It will trip over so-called "poison characters" such as
>, <, &, ^, |.
A better way might be to use Google to look for a Command
Line text editor.
|