Grep icon

Grep For Linux

3.3/5 22
GPL    

A command-line tool that searches one or more input files for lines containing a match to a specified pattern. #Search input files  #Regular expression  #NUM matching  #Regexp  #Search  #Find  

Softpedia Review

changelog

Free Download

Review by:
5.0/5

Grep is a unique and very powerful Linux/UNIX utility that allows you to search a specific string in one or multiple files on a GNU/Linux operating system. It is a command-line software that has been designed from the ground up to output only the matching lines. The Grep command is comprised of regexp selection and interpretation, output control, context control, and miscellaneous options.

To use Grep from the command-line, you will have to type the ‘grep --help’ command in a terminal emulator or directly in the Linux console, which will output all the available options, as well various examples on how to use the tool to find a certain pattern into a file. The standard usage example given by the aforementioned command is “grep [OPTION]... PATTERN [FILE]...”

The most basic example is “grep -i 'hello world' menu.h main.c”, where “-i” is the [OPTION] “hello world” is the [PATTERN] and “menu.h” and “menu.c” are the [FILE]. This simple command is used for searching for the “hello world” pattern in each of the given files. Keep in mind though, that [PATTERN] is, by default, a Basic Regular Expression (BRE).

Please note that when using the “-” symbol for the [FILE] string in the above example, Grep will automatically read the standard input. If no [FILE] is specified at all, it will read the current directory.

Grep is considered by Linux developers worldwide an essential UNIX utility, which means that it is installed by default on almost all GNU/Linux operating systems. If for some strange reason your Linux box does not have the grep tool installed, you will be able to easily install it from the default software repositories of your distribution. Both 64-bit and 32-bit architectures are supported at this time.

User Comments
This enables Disqus, Inc. to process some of your data. Disqus privacy policy

Grep 3.4

add to watchlist add to download basket send us an update REPORT
  runs on:
Linux
  3 screenshots:
Grep - screenshot #1Grep - screenshot #2Grep - screenshot #3
  main category:
Utilities
  developer:
  visit homepage