logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

fgrep - Search Fixed Strings | Online Free DevTools by Hexmos

Search fixed strings with fgrep. Quickly find exact text patterns in files using this command-line utility. Free online tool, no registration required.

fgrep

Matches fixed strings in files. Equivalent to grep -F. More information: https://www.gnu.org/software/grep/manual/grep.html.

  • Search for an exact string in a file:

fgrep {{search_string}} {{path/to/file}}

  • Search only lines that match entirely in one or more files:

fgrep {{[-x|--line-regexp]}} {{search_string}} {{path/to/file1 path/to/file2 ...}}

  • Count the number of lines that match the given string in a file:

fgrep {{[-c|--count]}} {{search_string}} {{path/to/file}}

  • Show the line number in the file along with the line matched:

fgrep {{[-n|--line-number]}} {{search_string}} {{path/to/file}}

  • Display all lines except those that contain the search string:

fgrep {{[-v|--invert-match]}} {{search_string}} {{path/to/file}}

  • Display filenames whose content matches the search string at least once:

fgrep {{[-l|--files-with-matches]}} {{search_string}} {{path/to/file1 path/to/file2 ...}}

See Also