---
title: "grep command"
canonical: "https://docs.infoblox.com/space/NetMRI753/42010638/grep%20command"
format: markdown
---
Use the `grep` command to search a file for a <span style="color: #273239">particular pattern of characters. The command displays all lines that contain that pattern. By default, the pattern is a regular expression.</span>

# Syntax

The following is the command syntax:

`grep [options] pattern [files]`

The `grep` command is a basic Linux command. Depending on the system you are working in, the available options for this command may vary.

# Example

`netmrivm193> grep -i 'hello world' menu.h main.c`