Multi-line Find/Replace across a directory structure?
Posted: Fri Mar 06, 2009 10:10 am
I have a bunch of files in a directory structure that have an invalid DTD declaration and some proprietary junk that I want to delete. So now I want to work with them in oXygen and use the standard DITA-OT DTD.
Is there a method for me, in Oxygen, to replace the multiple lines that these files all have in their headers, with the simple simple declaration of:
So, in other words, for "Find," can I put the multiple lines that are in the topics now (something like 15 lines), and have it replace those lines with
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN"
"../../../frameworks/dita/DITA-OT/dtd/task.dtd">
...and then do this operation recursively through a directory structure?
I had a script to do this but it wasn't entirely successful so now I am hoping there is an easy way to do this in the oXygen interface or with another tool that comes with oXygen.
Thanks,
John
Is there a method for me, in Oxygen, to replace the multiple lines that these files all have in their headers, with the simple simple declaration of:
So, in other words, for "Find," can I put the multiple lines that are in the topics now (something like 15 lines), and have it replace those lines with
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN"
"../../../frameworks/dita/DITA-OT/dtd/task.dtd">
...and then do this operation recursively through a directory structure?
I had a script to do this but it wasn't entirely successful so now I am hoping there is an easy way to do this in the oXygen interface or with another tool that comes with oXygen.
Thanks,
John