Factbites
 Where results make sense
About us   |   Why use us?   |   Reviews   |   PR   |   Contact us  

Topic: Grep


  
  Grep - Wikipedia, the free encyclopedia
There are many derivatives of grep, for example agrep which stands for approximate grep to facilitate fuzzy string searching, fgrep for fixed pattern searches, and egrep for searches involving more sophisticated regular expression syntax.
In Perl, grep is a built-in function, which when provided both a regular expression (or a general code block) and a list, it returns the elements of that list matched by the expression.
As the name "grep" neatly fits the phonology of English, it is often used as a verb, meaning to search – usually, to search a known set of files, as one would with the grep utility.
en.wikipedia.org /wiki/Grep   (510 words)

  
 Grep: Facts and details from Encyclopedia Topic   (Site not responding. Last check: 2007-10-21)
A command line interface or cli is a method of interacting with a computer by giving it lines of textual commands (that is, a sequence of characters) either from...
A regular expression (abbreviated as regexp, regex, or regxp, with plural forms regexps, regexes, or regexen) is a string that describes...
Agrep (approximate grep) is a fuzzy string searching program, developed by udi manber and sun wu between 1988 and 1991, for use with the unix operating...
www.absoluteastronomy.com /encyclopedia/g/gr/grep.htm   (1016 words)

  
 YoLinux.com Manpage: grep
Warning: grep --binary-files=text might output binary garbage, which can have nasty side effects if the output is a terminal and if the terminal driver interprets some of it as commands.
If grep decides the file is a text file, it strips the CR characters from the original file contents (to make regular expressions with ^ and $ work correctly).
Grep understands two different versions of regular expres- sion syntax: "basic" and "extended." In GNU grep, there is no difference in available functionality using either syntax.
node1.yo-linux.com /cgi-bin/man2html?cgi_command=grep   (2238 words)

  
 [No title]
Grep uses regular expressions to specify the search pattern and a finite automaton to implement the search itself.
Egrep was faster then grep for simple patterns but for more complex searches it lagged behind because of the time it took to build a complete finite automaton for the regular expression before it could even start searching.
Grep provides no way of indicating the empty string so all classes of regular expressions that include an empty string may not be searchable.
www.cs.wisc.edu /~mdant/cs520_4.html   (883 words)

  
 grep - GNU Project - Free Software Foundation (FSF)   (Site not responding. Last check: 2007-10-21)
The Information for GNU grep developers is a comprehensive source for all development-related matters.
The Savannah project page for grep features a bug report area, a patch submission area, and other development-related tools.
If you are interested in helping with the development of GNU grep, please consider joining the bug-grep mailing list.
www.gnu.org /software/grep/grep.html   (291 words)

  
 BBEdit Grep Tutorial
Grep is perhaps one of the most powerful and least understood features of BBEdit.
BBEdit discusses how to use grep in the Apple Guide (and in the manual), but it may be a little short of an explanation for those unfamilar with it, so here's my explanation.
Second of all, BBEdit's grep is greedy, which means it goes for the biggest match it can, even if there are smaller matches inside it.
www.anybrowser.org /bbedit/grep.shtml   (1542 words)

  
 grep Command
The grep command displays the name of the file containing the matched line if you specify more than one name in the File parameter.
Note: The grep command with the -E flag is the same as the egrep command, except that error and usage messages are different and the -s flag functions differently.
Note: The grep command with the -F flag is the same as the fgrep command, except that error and usage messages are different and the -s flag functions differently.
www.unet.univie.ac.at /aix/cmds/aixcmds2/grep.htm   (942 words)

  
 Define grep - a definition from Whatis.com   (Site not responding. Last check: 2007-10-21)
Grep, a Unix command and also a utility available for Windows and other operating systems, is used to search one or more files for a given character string or pattern and, if desired, replace the character string with another one.
The output from grep can be the input (perhaps using the UNIX pipe symbol) for a replacement command.
grep allows the string argument to be specified as a regular expression, which is a way of specifying a string that allows certain metacharacters (special keyboard characters such as the period) to stand for other characters or to further define the way the pattern-matching should work.
searchwebservices.techtarget.com /sDefinition/0,,sid26_gci212215,00.html   (411 words)

  
 phpMan
If the input is standard input from a regular file, and NUM matching lines are output, grep ensures that the standard input is positioned to just after the last matching line before exiting, regardless of the presence of trailing context lines.
Grep understands two different versions of regular expression syntax: "basic" and "extended." In GNU grep, there is no difference in available functionality using either syntax.
A shell can put this variable in the environment for each command it runs, specifying which operands are the results of file name wildcard expansion and therefore should not be treated as options.
voidmain.is-a-geek.net /man?parm=grep&docType=man   (2568 words)

  
 What is GREP...
The Global Rinderpest Eradication Programme (GREP) Technical Consultation and EMPRES Expert Consultation held in Rome in September/October 1998 reviewed the progress made in rinderpest eradication and endorsed the view of the GREP Secretariat that a more vigorous approach is required if global freedom is to be attained by the year 2010.
Experts unanimously endorsed the need for an Intensified GREP to complement the existing activities and focus on clarifying any remaining areas of uncertainty and elimination of the last remaining foci of persisting infection in the shortest possible time.
GREP commenced throughout the world in the 1980s with mass immunisation campaigns which extended control to a point where, as described below, the remaining foci of endemicity are few, distinct and isolated.
www.fao.org /ag/AGA/AGAH/EMPRES/grep/e_rinder.htm   (1153 words)

  
 Unix for Advanced Users - Advanced Commands and Usage - grep
In addition to the standard grep command there are other flavors of grep like egrep and fgrep.
grep is often used to search the output from a command.
This prevents the shell from interpreting the special characters before it is passed to the grep command.
herbie.ucs.indiana.edu /UAU/advcomm/GREP.html   (787 words)

  
 Esmerel: Everyday use of grep
GREP (General Regular Expression Program) is a search tool for finding strings in text files.
This tells GREP to match any line containing var, followed by any number of spaces (*), followed by an equals sign, followed by any character which is not an equals sign ([^=]) (to eliminate the == comparison).
Note that you need to tell grep that you you want spaces followed by something which is not a space, or it will match anything since it can use the last space to match against the "not A" requirement.
www.esmerel.com /wagons/rob/grep.html   (897 words)

  
 grep
The grep utility shall search the input files, selecting lines matching one or more patterns; the types of patterns are controlled by the options specified.
Multiple -e and -f options are accepted and grep uses all of the patterns it is given while matching input text lines.
This grep has been enhanced in an upwards-compatible way to provide the exact functionality of the historical egrep and fgrep commands as well.
www.opengroup.org /onlinepubs/009695399/utilities/grep.html   (1487 words)

  
 grep tutorial
Grep is a tool that originated from the UNIX world during the 1970's.
Grep will output the filenames and the line numbers or the actual lines that matched the regular expression.
Since neither grep nor egrep support any of the special features like backreferences, lazy repetition, or lookaround, and because grep and egrep only indicate whether a match was found on a particular line or not, this distinction does not matter, except that the text-directed engine is faster.
www.regular-expressions.info /grep.html   (734 words)

  
 grep.1   (Site not responding. Last check: 2007-10-21)
The grep command searches the lines of the specified files (or of standard input) for occurrences of the regular expression pattern.
With this option given, grep does not directly search in each given file that is a directory, but descends it recursively and scans each regular file found below it.
If an input file is found to be compressed with compress(1), gzip(1), or bzip2(1), the appropriate compression program is started, and grep searches for the pattern in its output.
heirloom.sourceforge.net /man/grep.1.html   (696 words)

  
 Text searching in linux with grep [Page 1 of 2]
Grep is a wonderful command in Linux and makes the Linux environment that much easier to process large files or large amounts of data.
Grep is not only limited to searching for files, you can also limit command output to a specified string.
Grep can be used in conjunction with any command, as far as I know and it has many features not mentioned so far so the next page will simply show some examples of advanced uses of grep.
www.iceteks.com /articles.php/grep/1   (1186 words)

  
 UNIX man pages : grep (1)
The grep utility searches text files for a pattern and prints all lines that contain that pattern.
Multiple -e and -f options are accepted and grep will use all of the patterns it is given while matching input text lines.
If there is a line with embedded nulls, grep will only match up to the first null; if it matches, it will print the entire line.
bama.ua.edu /cgi-bin/man-cgi?grep+1   (990 words)

  
 grep_tutorial   (Site not responding. Last check: 2007-10-21)
Another way of using grep is to have it accept data through STDIN and filter to STDOUT.
grep "([^()]*)a" file - returns any line containing a pair of parentheses that are innermost (don't have parenthesis inside them) and are followed by the letter "a".
A better way to do an extended "grep" is to use grep -E which uses extended regular expression syntax without loss of functionality.
www.selectorweb.com /grep_tutorial.html   (835 words)

  
 Linux: grep
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.
Regular expressions are constructed analogously to arithmetic expressions, by using various operators to combine smaller expressions.
Be sure to include the word "grep" somewhere in the "Subject:" field.
nixdoc.net /man-pages/Linux/man1/grep.1.html   (2150 words)

  
 GREP 8.0 Quick Start -- Find Regular Expressions in Files
GREP scans either named input files or the standard input — the standard input can be a named file, a pipe, or the keyboard.
GREP examines all files on the entire current drive whose names start with “hazax”; then it looks at all C source files in the current directory and all subdirectories under it; finally it looks at all HTML files in directory “g:\mumble” and all subdirectories under it.
GREP was originally written with plain text files in mind, but you can also use it quite well with binary files like word-processing files, databases, and executable programs.
oakroadsystems.com /sharware/grep101.htm   (2677 words)

  
 UNIX man pages : grep ()   (Site not responding. Last check: 2007-10-21)
By default, TYPE is binary, and grep normally outputs either a one-line message saying that a binary file matches, or no mes- sage if there is no match.
Grep understands two different versions of regular expression syntax: "basic" and "extended." In GNU grep, there is no difference in avail- able functionality using either syntax.
Grep's behavior is affected by the following environment variables.
www.mcsr.olemiss.edu /cgi-bin/man-cgi?grep   (2592 words)

  
 ISDweb | Documentation | Operating Systems | UNIX | Grep   (Site not responding. Last check: 2007-10-21)
The grep UNIX command allows you to find lines in files that contain key words or phrases.
With this command, it is possible to perform a quick search of a file or directory without having to look at each file via a text editor or the UNIX more command.
grep would display every line with an occurrence of the pattern regardless of its position in a word.
www.usc.edu /isd/doc/os/unix/commands/grep.html   (561 words)

  
 A Tao of Regular Expressions   (Site not responding. Last check: 2007-10-21)
substitution commands or as grep file search commands, but they are representative examples and the concepts can be applied in the use of tools such as sed, awk, perl and other programs that support regular expressions.
Grep uses the regular expression we supply and tries to match it to every line of the file.
grep is a program used to match regular expressions in one or more specified files or in an input stream.
sitescooper.org /tao_regexps.html   (2493 words)

  
 Computing.Net - grep search row record
i'm using "grep ann inputfile" and it show all the entire row and not the record on column 4.
my question is that now i know how to cut the column already but when i cut it i want to use grep to display out the age that less than 50, how should use grep to search age that less than 50.
As others have pointed out, grep is a tool for pattern filtering, not output manipulation.
www.computing.net /unix/wwwboard/forum/6116.html   (447 words)

  
 Softpanorama Unix Grep Page   (Site not responding. Last check: 2007-10-21)
The simplest way of using grep is plain vanilla string search (fgrep or grep -F invocation): you can select all lines that contain a certain string in one or more files.
In complex cases it's always easier to use Perl or use grep -P option (Perl regular expression option is available only in GNU grep) than to explore intricacies of grep syntax.
GNU grep comes with a recursive option (-r,-R) that allows you to recursively grep for a pattern through all files and any subdirectories.
www.softpanorama.org /Tools/grep.shtml   (1350 words)

  
 Linux/BSD Gangsters - Content - Linux - Guide/how-to - Why Would You Want To Use Grep?   (Site not responding. Last check: 2007-10-21)
Grep is one of the truly useful commands available on a Unix system.
Learning to master grep will open up other truly useful tools for you, such as sed, awk and perl.
For grep, the escaped character is the backslash - "\".
linuxgangster.org /modules.php?name=Content&file=viewarticle&id=14   (836 words)

  
 Windows Grep Search Utility Home Page   (Site not responding. Last check: 2007-10-21)
Windows Grep is a tool for searching files for text strings that you specify.
The program combines the power and flexibility of traditional command line grep utilities available on DOS, UNIX and other platforms with the ease of use of Microsoft Windows.
Windows Grep is designed for searching plain-ASCII text files, such as program source, HTML, RTF and batch files, but it can also search binary files such as word processor documents, databases, spreadsheets and executables.
www.wingrep.com   (191 words)

  
 Grep results expanded - Peterbe.com (Peter Bengtsson on Python, Zope, Kung Fu, London and photos)   (Site not responding. Last check: 2007-10-21)
UPDATE I know that this can be done in grep but I don't know how which means I would have to study the man pages.
You might be interested in the -A, -B and -C options to grep.
if you want the editor, you can use grep from within emacs and then next-error / previous-error to automatically open the files and navigate.
www.peterbe.com /plog/grep-results-expanded   (470 words)

  
 Grep   (Site not responding. Last check: 2007-10-21)
This describes the default behavior of the grep command.
Grep takes a regular expression on the command line, reads standard input or a list of files, and outputs the lines containing matches for the regular expression.
Many text- and word processors now employ regular expression search features, which those applications will often refer to as a "grep tool" or "grep mode" in which one creates "grep patterns", hence the confusion, especially in non-Unix environments.
www.freedownloadsoft.com /info/grep.html   (269 words)

  
 grep
SYNTAX grep "Search String" [filename] grep [-e pattern] [file...] grep [-f file] [file...] A simple example: $grep “Needle in a Haystack” /etc/* OPTIONS -A NUM --after-context=NUM (GNU Extension) Print NUM lines of trailing context after matching lines.
This option causes grep to act as if the file is a text file, even if it would otherwise be treated as binary.
This switch causes `grep' to report byte offsets as if the file were Unix style text file, i.e., the byte offsets ignore the `CR' characters which were stripped.
www.ss64.com /bash/grep.html   (1248 words)

Try your search on: Qwika (all wikis)

Factbites
  About us   |   Why use us?   |   Reviews   |   Press   |   Contact us  
Copyright © 2005-2007 www.factbites.com Usage implies agreement with terms.