grep_4 - `-F ' `--fixed-strings ' Interpret the pattern as...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
[ < ] [ > ] [ << ] [ Up ] [ >> ] [ Top ] [ Contents ] [ Index ] [ ? ] 4. grep programs grep searches the named input files (or standard input if no files are named, or the file name ` - ' is given) for lines containing a match to the given pattern. By default, grep prints the matching lines. There are four major variants of grep , controlled by the following options. ` -G ' ` --basic-regexp ' Interpret the pattern as a basic regular expression. This is the default. ` -E ' ` --extended-regexp ' Interpret the pattern as an extended regular expression.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: `-F ' `--fixed-strings ' Interpret the pattern as a list of fixed strings, separated by newlines, any of which is to be matched. `-P ' `--perl-regexp ' Interpret the pattern as a Perl regular expression. In addition, two variant programs EGREP and FGREP are available. EGREP is the same as ` grep -E '. FGREP is the same as ` grep -F '. [ &lt;&lt; ] [ &gt;&gt; ] [ Top ] [ Contents ] [ Index ] [ ? ] This document was generated by System Administrator on May, 18 2009 using texi2html 1.70 ....
View Full Document

This note was uploaded on 03/07/2012 for the course ACC 231 taught by Professor Richester during the Spring '12 term at Northampton Community College.

Ask a homework question - tutors are online