What Does Grep Stand for in Linux?
Contents

grep Global regular expression print. The grep command comes from the command used by the ed program (a simple and venerable Unix text editor) to print all lines matching a certain pattern: g/re/p.

Why is grep called grep?

Its name comes from the ed command g/re/p (globally search for a regular expression and print matching lines), which has the same effect. … grep was originally developed for the Unix operating system, but later available for all Unix-like systems and some others such as OS-9.

What does grep command do?

The grep filter searches a file for a particular pattern of characters, and displays all lines that contain that pattern. The pattern that is searched in the file is referred to as the regular expression (grep stands for globally search for regular expression and print out).

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest