[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep

From: Paul Jarc
Subject: Re: grep
Date: Thu, 06 Jun 2002 17:48:36 -0400
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i686-pc-linux-gnu)

"Tuan Nguyen" <address@hidden> wrote:
> I want to report a bug. The grep -r went down to the directories,
> but it then went "upward" to the root after finishing at the
> subdirectories??
> address@hidden root]# grep -lis -r autostart .* *

.* is expanded by the shell to all dotfiles including "..".  Since
grep sees an explicit "..", it will descend there.  You could use a
different shell pattern to exclude "..":
grep -lis -r autostart .[!.]* ..?* *


reply via email to

[Prev in Thread] Current Thread [Next in Thread]