File Exchange

image thumbnail

scriptsearch

version 1.2.0.1 (2.19 KB) by Jakob Sievers
Search for strings within multiple scripts

1 Download

Updated 24 Jul 2019

View License

Search for string(s) within a large number of scripts located recursively within an input directory, in order to iteratively narrow down the location of a particular piece of code, as opposed to manual search. Handy for people who work on many projects and find themselves at times having to re-visit old forgotten code.

Cite As

Jakob Sievers (2019). scriptsearch (https://www.mathworks.com/matlabcentral/fileexchange/45696-scriptsearch), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

this is actually quite handy and simple to use, thanks a lot

Why not just use MATLAB's inbuilt Find Files tool?

https://www.mathworks.com/help/matlab/matlab_env/finding-files-and-folders.html

MATLAB's inbuilt Find Files tool also has the option to recursively search folders, as well as matching different filename and filetype patterns. The results of each search are kept in tabs, so you can easily compare and/or copy-and-paste the results to get one combined list, if that is what you need.

Chang hsiung: Thanks for the feedback. Changes made according to your wish.
Best
Jakob

pls change the following:

elseif isstring(str)

to

elseif ischar(str)

Updates

1.2.0.1

Example image added

1.2.0.0

- Matlab 2019a compatibility
- Number of lines read is now also shown
- Title changed to "scriptsearch"

1.1.0.0

isstring changed to ischar

MATLAB Release Compatibility
Created with R2019a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: Ogive optimization toolbox