Bulk Find/Replace Across Multiple Files
Oxygen general issues.
-
dbarn021
- Posts: 2
- Joined: Thu Aug 17, 2023 7:25 pm
Bulk Find/Replace Across Multiple Files
Hello,
I am trying to modify a QTIv2.1 package and need replace thousands of strings from one value to another across 50+ imsmanifest.xml files. Is there a simple way to find the value (example: LA.R.3.4.b) and replace with new value in the same string (example: B190A18A-410B-4ACE-B5DB-04159F2949D1). This needs to be done for approximately 17,000 strings across 50+ XML files.
I am looking for a relatively quick way to find/replace values across all files at once, and then save the manifest files according to their properly nested folder location. Is this possible or am looking at life too optimistically? Thank you for any help!
I am trying to modify a QTIv2.1 package and need replace thousands of strings from one value to another across 50+ imsmanifest.xml files. Is there a simple way to find the value (example: LA.R.3.4.b) and replace with new value in the same string (example: B190A18A-410B-4ACE-B5DB-04159F2949D1). This needs to be done for approximately 17,000 strings across 50+ XML files.
I am looking for a relatively quick way to find/replace values across all files at once, and then save the manifest files according to their properly nested folder location. Is this possible or am looking at life too optimistically? Thank you for any help!
-
Radu
- Posts: 9660
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Bulk Find/Replace Across Multiple Files
Hi,
Have you tried using Oxygen's "Find/Replace in Files" dialog (main menu "Find->Find/Replace in Files")?
Regards,
Radu
Have you tried using Oxygen's "Find/Replace in Files" dialog (main menu "Find->Find/Replace in Files")?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
galanohan
- Posts: 115
- Joined: Mon Jul 10, 2023 11:49 am
Re: Bulk Find/Replace Across Multiple Files
1. find the pattern. let's say, the same characteristics shared by these thousands of documents. For example, "format=".
2. Open VS Code.
3. Open the folder where all these files to be modified are saved.
4. Find/Replace. Use the keyword or what needs to be replaced, and replace them with new content (even though it's a space or nothing which means batch delete)
Done.
2. Open VS Code.
3. Open the folder where all these files to be modified are saved.
4. Find/Replace. Use the keyword or what needs to be replaced, and replace them with new content (even though it's a space or nothing which means batch delete)
Done.
-
dbarn021
- Posts: 2
- Joined: Thu Aug 17, 2023 7:25 pm
Re: Bulk Find/Replace Across Multiple Files
Thank you for the reply. Nearly 3 years later and I'm still trying to find a way to bulk replace string attributes.galanohan wrote: ↑Fri Sep 08, 2023 4:37 am 1. find the pattern. let's say, the same characteristics shared by these thousands of documents. For example, "format=".
2. Open VS Code.
3. Open the folder where all these files to be modified are saved.
4. Find/Replace. Use the keyword or what needs to be replaced, and replace them with new content (even though it's a space or nothing which means batch delete)
Done.
Are you saying I can paste more than one value in the Find result to Replace?
Basically, in a QTI package under the Curriculum string, I need to replace the current taxon with new value. I can do this individually using Find/Replace but this is very tedious when working with 20,000+ values across thousands of nested files.
-
Radu
- Posts: 9660
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Bulk Find/Replace Across Multiple Files
Hi,
I do not understand the question, maybe you can give a small example.
One can instead of using Oxygen's Find/Replace in Files dialog to create a custom XSLT stylesheet and apply it with our XML refactoring support, there are some sample XML refactoring ideas implemented here:
https://github.com/oxygenxml/dita-refactoring-examples
Regards,
Radu
I do not understand the question, maybe you can give a small example.
One can instead of using Oxygen's Find/Replace in Files dialog to create a custom XSLT stylesheet and apply it with our XML refactoring support, there are some sample XML refactoring ideas implemented here:
https://github.com/oxygenxml/dita-refactoring-examples
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service