Difference between revisions of "Grep"

From Christoph's Personal Wiki
Jump to: navigation, search
 
(See also)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''grep''' ('''G'''lobal '''R'''egular '''E'''xpression '''P'''rint) is a [[:Category:Linux Command Line Tools|command line utility]] that for a given a list of files or standard input to read, grep searches for lines of text that match one or many regular expressions, and outputs only the matching lines.
+
'''grep''' ('''G'''lobal '''R'''egular '''E'''xpression '''P'''rint; g/re/p; global / regular expression / print) is a [[:Category:Linux Command Line Tools|command line utility]] that for a given a list of files or standard input to read, grep searches for lines of text that match one or many regular expressions, and outputs only the matching lines.
  
 
==See also==
 
==See also==
*agrep — ''approximate grep'' to facilitate [[wikipedia:fuzzy string searching|fuzzy string searching]]
+
*[http://www.tgries.de/agrep/ agrep] — ''approximate grep'' to facilitate [[wikipedia:fuzzy string searching|fuzzy string searching]]
*fgrep — fixed pattern searches
+
*[http://www.gnu.org/software/grep/ fgrep] — fixed pattern searches
*egrep — for searches involving more sophisticated regular expression syntax
+
*[http://www.gnu.org/software/grep/ egrep] — for searches involving more sophisticated regular expression syntax
*ngrep — ''network grep''
+
*[http://ngrep.sourceforge.net/ ngrep] — ''network grep''
*rgrep — ''recursive grep''
+
*[http://www.jedsoft.org/jed/ rgrep] — ''recursive grep''
*pgrep — displays the processes whose names match a regular expression
+
*[[wikipedia:pgrep|pgrep]] — displays the processes whose names match a regular expression
*ugrep &mdsah; only do basic regexp string matching
+
*[http://robur.slu.se/jensl/ugrep/ ugrep] — only do basic regexp string matching
*tcgrep — rewrite of grep which uses [[Perl]] [[regular expression]] syntax
+
*[http://search.cpan.org/src/CWEST/ppt-0.14/html/commands/grep/tcgrep.html tcgrep] — rewrite of grep which uses [[Perl]] [[regular expression]] syntax
*apachegrep — a Perl program to help webmasters go through their [[apache]] logs
+
*[http://apachegrep.sourceforge.net/ apachegrep] — a Perl program to help webmasters go through their [[apache]] logs
*rexgrep — GUI frontend to grep
+
*[http://rexgrep.tripod.com/rexgrep.htm rexgrep] — GUI frontend to grep
*webgrep — a set of 7 search utilities for web-masters
+
*[http://www.linuxfocus.org/~guido/ webgrep] — a set of 7 search utilities for web-masters
 +
===Other===
 +
*[http://www.cs.helsinki.fi/u/jjaakkol/sgrep.html Structure grep (sgrep)]
 +
*[http://www.dcc.uchile.cl/%7Egnavarro/software/ Nondeterministic reverse grep (NR-grep)]
 +
*[http://www.grouse.com.au/ggrep/ Grouse Grep (ggrep)]
 +
*[http://www.vdesmedt.com/%7Evds2212/grep.html Python Grep (pygrep)]
 +
*[http://www.ff.iij4u.or.jp/%7Enrt/lv/ Multilingual Grep (lv)]
 +
 
 +
==External links==
 +
*[http://www.gnu.org/software/grep/ GNU grep] — the grep that usually comes with Linux distributions
 +
*[http://unixhelp.ed.ac.uk/CGI/man-cgi?grep GNU grep] man page
 +
*[http://www.linfo.org/grep.html The grep Command] - by The Linux Information Project (LINFO)
 +
*[http://ridiculousfish.com/blog/archives/2006/05/30/old-age-and-treachery/ "The Treacherous Optimization"] — article on tradeoffs in grep to favor best-case over worst-case scenarios
 +
*[http://stts.se/index.php?lang_id=en_uk&page=egrep Egrep for linguists] — an introduction to egrep.
 +
*[http://tony.abou-assaleh.net/GREPs Tony Abou-Assaleh's list of Greps]
 +
*[http://search.cpan.org/src/CWEST/ppt-0.14/html/commands/grep/tcgrep.html TCGrep]
  
 
[[Category:Linux Command Line Tools]]
 
[[Category:Linux Command Line Tools]]

Latest revision as of 08:45, 17 October 2017

grep (Global Regular Expression Print; g/re/p; global / regular expression / print) is a command line utility that for a given a list of files or standard input to read, grep searches for lines of text that match one or many regular expressions, and outputs only the matching lines.

See also

  • agrepapproximate grep to facilitate fuzzy string searching
  • fgrep — fixed pattern searches
  • egrep — for searches involving more sophisticated regular expression syntax
  • ngrepnetwork grep
  • rgreprecursive grep
  • pgrep — displays the processes whose names match a regular expression
  • ugrep — only do basic regexp string matching
  • tcgrep — rewrite of grep which uses Perl regular expression syntax
  • apachegrep — a Perl program to help webmasters go through their apache logs
  • rexgrep — GUI frontend to grep
  • webgrep — a set of 7 search utilities for web-masters

Other

External links