grep

dw_fluffos_v1/lib/doc/creator/commands/grep · 859 B

From the archive dw_fluffos_v1.tar.gz

Download the archive   « Back to the archive contents

.DT
grep
Discworld creator help
grep

.SH Name
.SI 5
grep - Search a file for a pattern.
.EI

.SH Syntax
.SI 5
grep <regexp> <file(s)>
.EI

.SH Description
.SP 5 5
Grep stands for Get Regular ExPression (I think) and if it doesn't, the unix
version will take a regular expression and search files for it.  The version on
the mud also takes a regexp and tries to find all occurances of it through the
files specified.  See "man regexp" for an explanation of what a regular
expression is.

Grep is used to search through the list of files given for any occurance of 
the pattern.  Useful if you are trying to find every file which has the
word frog in it for instance.
.EP

.SH Examples
.SI 5
grep frog /std/living/*.c
grep this_player() test.c
grep am /log/APPLICATIONS
grep (frog|bing|womble) /global/*
.EI

.SH See also
.SP 5 5
regexp, more, cat, ed, le
.EP

Site Stats

Snippets: 1791
Codebases: 571