Bulk Find/Replace Across Multiple Files

Oxygen general issues.
dbarn021
Posts: 1
Joined: Thu Aug 17, 2023 7:25 pm

Bulk Find/Replace Across Multiple Files

Post by dbarn021 »

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!
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Bulk Find/Replace Across Multiple Files

Post by Radu »

Hi,
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
galanohan
Posts: 115
Joined: Mon Jul 10, 2023 11:49 am

Re: Bulk Find/Replace Across Multiple Files

Post by galanohan »

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.
Post Reply