[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ls -lR *.c
From: |
Bob Proulx |
Subject: |
Re: ls -lR *.c |
Date: |
Fri, 28 Jan 2005 19:01:46 -0700 |
User-agent: |
Mutt/1.5.6+20040907i |
Richard A. Hogaboom wrote:
> I use "ls -lR" to list file recursively. Shouldn't I be able to
> do "ls -lR *.c" to see only *.c files recursively also? When I
> do this I get:
>
> capella:rah:hal-0.4.7[63] ls -lR *.c
> ls: *.c: No such file or directory
A common misunderstanding. The answer is documented here:
http://www.gnu.org/software/coreutils/faq/
Look for:
"Why doesn't rm -r *.pattern recurse like it should?"
Bob