Filegrep

A GUI-driven file grep/backup/editing tool.
3.4K Downloads
Updated 23 Jan 2004

View License

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.

Cite As

Brett Shoelson (2024). Filegrep (https://www.mathworks.com/matlabcentral/fileexchange/4397-filegrep), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Environment and Settings in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0