[WEBINAR] The New Normal: Dealing with the Reality of an Unsecure World


Definition - What does Grep mean?

Grep is a command used in Linux, UNIX and Unix-like operating systems to search text, files or any document for a user-specific pattern, a string of text or a matching character. It displays the matching line on the screen that contains the searched object/objects. Grep is one of the most powerful commands on operating systems like Unix or Linux.

Techopedia explains Grep

The term grep originates from a command in Unix which used to perform a similar operation, g/re/p, which means "globally search a regular expression and print."

The basic syntax of grep is:

grep [option(s)] pattern [file(s)]

Where the given pattern is searched inside the lines contained in the named files. The objects listed inside the square brackets are optional. When the options and input file are not specified, then the grep command searches for standard input (which is by default the standard text typed on the keyboard) and each line that happens to constitute the given pattern is displayed.

Techopedia Deals

Connect with us

Techopedia on Linkedin
Techopedia on Linkedin
"Techopedia" on Twitter

Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Free Whitepaper: The Path to Hybrid Cloud
Free Whitepaper: The Path to Hybrid Cloud:
The Path to Hybrid Cloud: Intelligent Bursting To Amazon Web Services & Microsoft Azure
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.