bug-findutils
[Top][All Lists]
Advanced

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

Re: How to locate a directory?


From: Andreas Metzler
Subject: Re: How to locate a directory?
Date: Sun, 25 Apr 2010 18:48:50 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

On 2010-04-25 Peng Yu <address@hidden> wrote:
> I'm wondering if there is a way to locate directory.

> For example, file a.txt b.txt c.txt are in the directory 'a_dir'. When
> I locate 'a_dir', all the three file shows up. I just want to show
> 'a_dir' rather the three files. Is there a way to do so?

> a_dir/a.txt
> a_dir/b.txt
> a_dir/c.txt

locate -r '/a_dir$'

cu andreas




reply via email to

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