FAST, PROGRAMMATIC string searching in directories of MATLAB code files

버전 1.4.0.1 (5.45 KB) 작성자: Brett Shoelson
VERY FAST Command-Line searching for text contained in MATLAB code files.
다운로드 수: 761
업데이트 날짜: 2016/9/1

라이선스 보기

편집자 메모: This file was selected as MATLAB Central Pick of the Week

Pre-analyze directories of MATLAB code to create searchable text files for very fast scanning for strings across multiple files.
The MathWorks 'Find Files' interface allows interactive searching for text in MATLAB files. |findInM| (in conjunction with its companion |collectCode|) allows you to search programmatically (i.e., from within a script or function, or at the Command Line), and can be much faster than any other method I've seen.
On first use, or when a New collection is requested, the user will be prompted to select a top-level directory and to indicate whether or not to recurse, and a new code collection will be created and stored. This will allow for very fast subsequent searches.
Comments/suggestions/collaborations welcome.

인용 양식

Brett Shoelson (2024). FAST, PROGRAMMATIC string searching in directories of MATLAB code files (https://www.mathworks.com/matlabcentral/fileexchange/48065-fast-programmatic-string-searching-in-directories-of-matlab-code-files), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2014b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.4.0.1

Updated license

1.4.0.0

(Once again, removed userpath).

1.3.0.0

Added special handling for 2-input case:
a = findInM(searchstring,collection); AND, added "Current-Directory" search:
a = findInM(searchstring,'pwd').

1.2.0.0

I made some general improvements, and allowed for sorting by date or size. Better auto-naming of code collections. Also added a screen shot.

1.1.0.0

Better naming convention

1.0.0.0