grep Top Level

grep

  1. Quick and Concise Document

  2. Beginners

grep QCD Help

 Command                    Description
 -------                    -----------

 grep keyword *             Search all files in the current directory 
                            for keyword.

 grep -i keyword filename   Search a specific filename for keyword.


grep Beginner Help


grep is a useful tool for locating files that contain specified keywords,
a function you will come to appreciate when working with directories that
contain a large number of files.  For example, to locate the particular
file that contains a reference to the game tetris, type:

   world%  grep tetris *

where "*" is a wildcard that instructs grep to search all files in the
current directory for the word "tetris".


You may also use the grep command on a specific file.  For example,
use the 'grep -i' command to execute a search (case insensitive) on
the file '/help/newsgroups' (a very large file containing the names of
all the newsgroups that The World subscribes to) for newgroups that
discuss food:

   world% grep -i food /help/newsgroups 
   alt.college.food        Dining halls, cafeterias, mystery meat, and more!
   alt.crackers            Snack food in little bits or big bytes.
   alt.food.cocacola       & Royal Crown, Pepsi, Dr. Pepper, NEHI, etc...
   alt.food.fat-free       Quest for thinness.
   alt.food.mcdonalds      Carl Sagan's favourite burger place.
   alt.org.food-not-bombs  Activism for the homeless.
   ba.food                 Bay Area restaurants and eating places.
   rec.food.cooking        Food, cooking, cookbooks, and recipes.
   rec.food.drink          Wines and spirits.
   rec.food.drink.beer     All things beer.
   ...



HOME Top of Help Desk Eye On The World  The World Kiosk


             For further assistance, please send an email 
                   request to support@world.std.com

        Copyright 1995 Software Tool & Die, Inc.  All Rights Reserved.

   Software Tool & Die, Inc., 1330 Beacon St. Suite 215 Brookline, MA 02146