Find and Replace in Files

Perform find and replace operations against a folder structure of MATLAB .m files.
564 Downloads
Updated 20 Nov 2018

View License

This app enables you to search for text in *.m files in a folder or folder structure. Then, you may apply replacements to the instances found. Regular expressions may optionally be used in the search text. Currently only *.m files are supported.

This code will modify multiple files within a specified folder structure. Although the app does back up the modified files to your TEMP directory, I STRONGLY RECOMMEND before using this that you also back up your code folder or commit your code to a version controlled repository.

Built by MathWorks Consulting and *requires* you to install GUI Layout Toolbox and Widgets Toolbox. This app is dependent on functionality in those toolboxes.
https://www.mathworks.com/matlabcentral/fileexchange/47982-gui-layout-toolbox
https://www.mathworks.com/matlabcentral/fileexchange/66235-widgets-toolbox

This app was built by MathWorks Consulting Services. To learn how a MathWorks Consultant can help improve your software development skills, please see:
https://www.mathworks.com/services/consulting/proven-solutions/software-development-with-matlab.html
https://www.mathworks.com/services/consulting.html

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Environment and Settings in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.290

Bugfix for special characters. Switched code font to Monospaced.

1.0.156.0

Bugfix: corrected the hyperlink location where the original files are backed up

1.0.148.0