logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

Egrep Search - Find Text Patterns with Regex | Online Free DevTools by Hexmos

Search text patterns quickly with Egrep. Use extended regular expressions to find strings in files and directories. Free online tool, no registration required.

egrep

Find patterns in files using extended regex (supports ?, +, {}, (), and |). More information: https://manned.org/egrep.

  • Search for a pattern within a file:

egrep "{{search_pattern}}" {{path/to/file}}

  • Search for a pattern within multiple files:

egrep "{{search_pattern}}" {{path/to/file1 path/to/file2 ...}}

  • Search stdin for a pattern:

cat {{path/to/file}} | egrep {{search_pattern}}

  • Print file name and line number for each match:

egrep {{[-H|--with-filename]}} {{[-n|--line-number]}} "{{search_pattern}}" {{path/to/file}}

  • Search for a pattern in all files recursively in a directory, ignoring binary files:

egrep {{[-r|--recursive]}} --binary-files={{without-match}} "{{search_pattern}}" {{path/to/directory}}

  • Search for lines that do not match a pattern:

egrep {{[-v|--invert-match]}} "{{search_pattern}}" {{path/to/file}}

See Also