From owner-freebsd-questions@FreeBSD.ORG  Thu Nov 13 14:36:04 2003
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C7CF016A4CE
	for <questions@freebsd.org>; Thu, 13 Nov 2003 14:36:04 -0800 (PST)
Received: from mail1.acecape.com (mail1.acecape.com [66.114.74.12])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E0B9243F3F
	for <questions@freebsd.org>; Thu, 13 Nov 2003 14:36:03 -0800 (PST)
	(envelope-from lists@natserv.com)
Received: from p65-147.acedsl.com (p65-147.acedsl.com [66.114.65.147])
	by mail1.acecape.com (8.12.10/8.12.10) with ESMTP id hADMa3Xc004956
	for <questions@freebsd.org>; Thu, 13 Nov 2003 17:36:03 -0500
Date: Thu, 13 Nov 2003 17:37:39 -0500 (EST)
From: Francisco Reyes <lists@natserv.com>
X-X-Sender: fran@zoraida.natserv.net
To: FreeBSD Questions List <questions@freebsd.org>
Message-ID: <20031113173505.F84157@zoraida.natserv.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Subject: Recursion with grep?
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>,
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>,
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Nov 2003 22:36:04 -0000

The man page for grep says to use "-r" to recurse, yet when I try
something like

grep -r -li string *.c

I get no files. However, if I go into one of the subdirectories and do a
plain grep <string> *.c then <string> is found on several files.