SYNTAX:
[FILEDIRS, FILELINES] = FILEGREP
Filegrep is a powerful GUI for searching files in all directories specified by the user. User can search for filenames only, or within files for specified words/phrases/exclusions. Also, searches can be delimited by date or size, and user can include or exclude (by extension) any file type.
Once a search command is given, the user is presented with a list of files meeting the search criteria. The user can select and launch/edit the files, or can replace strings in them, or can write (back them up) to a new locations. (The backup mode includes an "overwrite older files only" option for protection.)
Features are too numerous to list...code is nearly 2500 lines...but the GUI offers tooltip strings and is pretty intuitive. One can readily exclude comments, or search comments only; searches can also be case-sensitive, or case-insensitive, and whole-word or not. In the (default) smart-search mode, hidden files are skipped.
The program has been tested in the Windows environment in both R12 and R13. After nearly a year of on-again, off-again effort, I think I have most bugs fixed. However, suggestions for improvement are welcome, as are bug reports.
Note: For anyone who previously downloaded my mfilegrep program, this incorporates and FAR surpasses that code in functionality.
Cita come
Brett Shoelson (2025). Filegrep (https://it.mathworks.com/matlabcentral/fileexchange/4397-filegrep), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
