[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 .[!.]* ..?* *
paul
- grep, Tuan Nguyen, 2002/06/06
- grep, Holger Lehmann, 2002/06/25
- Re: grep, Stepan Kasal, 2002/06/25
- Re: grep, Alfred M. Szmidt, 2002/06/25