searchtext

版本 1.0.0.0 (7.0 KB) 作者: Kevin
Search text in files.
897.0 次下载
更新时间 2007/5/29

无许可证

This is similar to grep in Unix. Recursive search. Ignore certain files and directories.

Example 1: Do the following search:
(a) Root directory is 'dlog'.
(b) Include all subdirectories under 'dlog'.
(c) Search for all files.
(d) Include any line that has the word 'TODO' in it. Case-sensitive.
>> searchtext('dlog', 'TODO', '', 1);
OR
>> searchtext('dlog', '*', '', '*', '', 'TODO', '', 1);

Do 'help searchtext" to see all examples.

The zipfile contains 3 files:
searchtext.m
searchfile.m
searchdir.m

All 3 files are fully documented in H1.

引用格式

Kevin (2024). searchtext (https://www.mathworks.com/matlabcentral/fileexchange/15121-searchtext), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2006b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Search Path 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0