grep: a pedestrian, very fast grep utility

バージョン 1.0.0.0 (25.3 KB) 作成者: us
a unix-like, very fast grep utility to find strings(s) in files of any type
ダウンロード: 15.4K
更新 2006/4/4

ライセンスの表示

編集メモ: This file was selected as MATLAB Central Pick of the Week

a fast grep utility, which finds string pattern(s) in all or selected files of any type in a folder and its subfolders (if the recursion flag -r is set).

file access and string matching are optimized by low-level i/o and string routines.
the recursion algorithm (-r) does not use ML's genpath.

the syntax and options as well as the output closely follow its unix/linux sibling.
string patterns may be defined as regular expressions.

many options allow to fine tune the GREP engine including an extensive set of inclusion/exclusion flags for folders, files, and full paths, which implement a regular expression based wildcard search.

clicking on an underlined text item will open the file at the matching line.

several help levels are implemented

1) quick overview
> grep
> help grep
sparse information about syntax and option flags (see screenshot)

2) extended help
> grep -p
syntax/peculiarities of pattern/file arguments
> grep -e
several examples (see also grepdemo.m)
> grep -f
for programmers: explanation of the second output argument

see the accompanying published M file for instructions and a few typical examples.

引用

us (2024). grep: a pedestrian, very fast grep utility (https://www.mathworks.com/matlabcentral/fileexchange/9647-grep-a-pedestrian-very-fast-grep-utility), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R14SP3
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersFile Operations についてさらに検索
謝辞

ヒントを与えたファイル: ff

Community Treasure Hunt

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

Start Hunting!

html/

バージョン 公開済み リリース ノート
1.0.0.0

now checks in unix-type subfolders that begin with a ., eg, .foo (requested by user kevin hung); version tag 04-Apr-2006 00:31:57