On 2010-04-25 Peng Yu <[email protected]> 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