ALERT

[FREE DEMO] Deploy Your Enterprise Cloud in Minutes

Grep

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
Tweat cdn.techopedia.com
"Techopedia" on Twitter


'@Techopedia'
Sign up for Techopedia's Free Newsletter!

Email Newsletter

Join thousands of others with our weekly newsletter

Resources
The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
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.