image thumbnail

Find and Replace in Files

version 1.1.290 (55.7 KB) by Robyn Jackey
Perform find and replace operations against a folder structure of MATLAB .m files.

383 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

Community Treasure Hunt

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

Start Hunting!